String Array Functions In Typescript Vs Nodejs