10
rated 0 times
[
13]
[
3]
/ answers: 1 / hits: 16144
/ 8 Years ago, fri, september 23, 2016, 12:00:00
I have the following bit of code to select and remove a d3.js node.
if (d.children) {
for (var child of d.children) {
if (child == node) {
d.children = _.without(d.children, child);
update(root);
break;
}
}
}
This works fine in Chrome and Edge, but fails in IE-11 with missing ;. It appears to be a problem with using 'of' to loop. Has anyone else run across this issue with IE before and if so how did you resolve it?
More From » ecmascript-6