aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/es6/iterableToArray.js
blob: 9f20ecdbd956006256170095c2019f700db1cc69 (plain)
1
2
3
4
5
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);
}