Javascript String Array Functions In Typescript Compiler Tsc