Typescript New Array Javascript Length Of Text