Typescript Turn String Into Array Javascript Clone