Typescript Turn String Into Array Javascript Methods W3schools