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

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