Typescript Add Value To Array Javascript Length Method