Update helpers from #7491. (#7532)

This commit is contained in:
Logan Smyth
2018-03-08 17:06:43 -08:00
committed by GitHub
parent 7901e7d1b9
commit 4da3f3bc64
10 changed files with 48 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
var _Array$from = require("../core-js/array/from");
var _isIterable = require("../core-js/is-iterable");
function _iterableToArray(iter) {
if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
}
module.exports = _iterableToArray;