Typescript Get First Value From Array