Typescript Get Value From Object Javascript Mdn