Typescript New Array Javascript Length Method