Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

foreach doesnt return

const arr = ['a','b','c'];
let res = [];
arr.forEach(el => res = [...res, el] );
console.log("res", res);
 
PREVIOUS NEXT
Tagged: #foreach #doesnt #return
ADD COMMENT
Topic
Name
3+4 =