convert array data into js

Example:

var data=[['1','200','10'],['2','300','15']];
data.forEach(function (item, index) { 
   data[index] = item.map(Number);
}); 
console.log(data);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top