mirror of https://github.com/node-red/node-red.git
Fixup IE11 Array.from polyfill
parent
5d81cec00c
commit
b1eafac67a
|
@ -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);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue