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

5 lines
279 B
JavaScript

import _Array$from from "../../core-js/array/from";
import _isIterable from "../../core-js/is-iterable";
export default function _iterableToArray(iter) {
if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
}