Push Object Key Value To Array Typescript Vs Javascript