update babel dev dependency and use for-of in sliced-to-array helper - fixes #1047
This commit is contained in:
parent
2c39d406d1
commit
df7524d909
@ -68,7 +68,7 @@
|
||||
"trim-right": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel": "4.6.0",
|
||||
"babel": "4.7.13",
|
||||
"browserify": "^9.0.3",
|
||||
"chai": "^2.0.0",
|
||||
"eslint": "^0.15.1",
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
return arr;
|
||||
} else if (Symbol.iterator in Object(arr)) {
|
||||
var _arr = [];
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
for (var val of arr) {
|
||||
_arr.push(_step.value);
|
||||
if (i && _arr.length === i) break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user