update babel dev dependency and use for-of in sliced-to-array helper - fixes #1047

This commit is contained in:
Sebastian McKenzie 2015-03-18 19:01:58 +11:00
parent 2c39d406d1
commit df7524d909
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

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