Split @babel/runtime into two separate runtime modules.
This commit is contained in:
6
packages/babel-runtime-corejs2/helpers/esm/toArray.js
Normal file
6
packages/babel-runtime-corejs2/helpers/esm/toArray.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import arrayWithHoles from "./arrayWithHoles";
|
||||
import iterableToArray from "./iterableToArray";
|
||||
import nonIterableRest from "./nonIterableRest";
|
||||
export default function _toArray(arr) {
|
||||
return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
|
||||
}
|
||||
Reference in New Issue
Block a user