Typescript New Empty Array Javascript Length