Typescript Push Object To Array Javascript Length Of Elements