javascript - Error with Array.map() in IE11 -


i have code:

var labelsprint= new array();  var vector = labelsprint.map((el) => el.id); 

ie11 give me error, because lost datas. know other way make .map?

ie11 has es5, not es6

var vector = labelsprint.map(function (el) { return el.id; }); 

Comments