babel/packages/babel-runtime/helpers/iterableToArray.js
2018-03-08 17:06:43 -08:00

9 lines
302 B
JavaScript

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;