typescript enumerate array with index