Typescript Get Value From Array Javascript Mdn Map Js Function