Typescript Get Value From Array Initialization