Answers for "get last index array typescript"

2

how to get last element of array in typescript

var items: String[] = ["tom", "jeff", "sam"];

alert(items[items.length-1])
Posted by: Guest on November-10-2020
0

how to get last index of array in javascript

last array index
Posted by: Guest on January-22-2022

Code answers related to "get last index array typescript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language