Typescript Push Element In Array Javascript Splice Strings