Get Last Object In Array Typescript Compiler Npmhu