12

I have this code:

var labelsPrint= new Array();

var vector = labelsPrint.map((el) => el.id);

IE11 give me a error, because lost the datas. Do you know an other way for make this .map?

1 Answer 1

32

IE11 has ES5, not ES6

var vector = labelsPrint.map(function (el) { return el.id; });
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.