Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

perform a function on each element of array javascript

var new_array = old_array.map(function(e) { 
  e.data = e.data.split(','); 
  return e;
});
 
PREVIOUS NEXT
Tagged: #perform #function #element #array #javascript
ADD COMMENT
Topic
Name
8+6 =