Split @babel/runtime into two separate runtime modules.
This commit is contained in:
3
packages/babel-runtime/helpers/esm/iterableToArray.js
Normal file
3
packages/babel-runtime/helpers/esm/iterableToArray.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
}
|
||||
Reference in New Issue
Block a user