how to get one result from an array typescript code example Example: javascript get first element of array alert(ary[0])