how to write a function in for each in n node js code example
Example: perform a function on each element of array javascript
var new_array = old_array.map(function(e) {
e.data = e.data.split(',');
return e;
});
var new_array = old_array.map(function(e) {
e.data = e.data.split(',');
return e;
});