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
1 changed files with 1 additions and 1 deletions

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