Split String Into Array Typescript Vs Nodejs Interview