Typescript Push Element In Array Javascript Methods