Put back ESM helpers in a folder where we can use .js (#12919)

This commit is contained in:
Nicolò Ribaudo
2021-03-01 17:31:12 +01:00
committed by GitHub
parent a653b9c08e
commit 9844eeee84
38 changed files with 1355 additions and 1365 deletions

View File

@@ -0,0 +1,14 @@
var arrayWithHoles = require("./arrayWithHoles.js");
var iterableToArray = require("./iterableToArray.js");
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
var nonIterableRest = require("./nonIterableRest.js");
function _toArray(arr) {
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
}
module.exports = _toArray;
module.exports["default"] = module.exports, module.exports.__esModule = true;