Convert Array Into String In Typescript Vs Angular