Get Last Object In Array Typescript Compiler Command Kw