Typescript Last Index Of String Javascript Methods W3schools