1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

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