Skip to content

Commit

Permalink
Fixup IE11 Array.from polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed May 22, 2020
1 parent 5d81cec commit b1eafac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
throw new Error("Node-RED's IE11 Array.from polyfill doesn't support multiple arguments");
}
var arrayLike = arguments[0]
var result = [];
if (arrayLike.forEach) {
var result = [];
arrayLike.forEach(function(i) {
result.push(i);
})
Expand Down

0 comments on commit b1eafac

Please sign in to comment.