How to convert array to string without commas in TypeScript

1 Answer

0 votes
const arr = ['typescript', 'c', 'c++'];
 
const str = arr.join('');
 
console.log(str);

 
   
   
   
   
/*
run:
   
"typescriptcc++" 
   
*/

 



answered Jun 22, 2022 by avibootz
...