Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove brackets from array javascript

const arr = [1, -2, 3, 4];
console.log(arr.reduce((prev, curr) => prev + ', ' + curr));
 
PREVIOUS NEXT
Tagged: #remove #brackets #array #javascript
ADD COMMENT
Topic
Name
2+6 =