Typescript Add Value To Array Javascript Length Of String