Typescript Delete All Items In Array Javascript Length W3schools