Fixup IE11 Array.from polyfill

This commit is contained in:
Nick O'Leary
2020-05-22 15:31:38 +01:00
parent 5d81cec00c
commit b1eafac67a

View File

@@ -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);
})