Typescript Add Element To Empty Array Javascript Push To Beginning