Get Last Object In Array Typescript Compiler Commanders Palace