Typescript Array Join Method In Javascript