mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
9 lines
423 B
JavaScript
9 lines
423 B
JavaScript
import arrayWithHoles from './_array_with_holes.mjs';
|
|
import iterableToArrayLimit from './_iterable_to_array.mjs';
|
|
import nonIterableRest from './_non_iterable_rest.mjs';
|
|
import unsupportedIterableToArray from './_unsupported_iterable_to_array.mjs';
|
|
|
|
export default function _slicedToArray(arr, i) {
|
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
}
|