How to convert array to string in TypeScript

1 Answer

0 votes
const arr: number[] = [1, 3, 4, 5, 7, 10, 13, 6, 9, 8];

console.log(arr.toString());
  
  

  
/*
run:
  
"1,3,4,5,7,10,13,6,9,8" 
  
*/

 



answered Nov 20, 2021 by avibootz

Related questions

...