Typescript Push Object To Array Javascript Splice