how to get the last item from a list in typescript code example
Example: how to get last element of array in typescript
var items: String[] = ["tom", "jeff", "sam"];
alert(items[items.length-1])
var items: String[] = ["tom", "jeff", "sam"];
alert(items[items.length-1])