* Node modules compatibility: add ".js" extension to imported polyfills * Update fixtures * add extensions on calling `addDefaultImport()`, not in the function.
9 lines
308 B
JavaScript
9 lines
308 B
JavaScript
var _Array$from = require("../core-js/array/from.js");
|
|
|
|
var _isIterable = require("../core-js/is-iterable.js");
|
|
|
|
function _iterableToArray(iter) {
|
|
if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
|
|
}
|
|
|
|
module.exports = _iterableToArray; |