String Array Functions In Typescript Vs Go