swc/packages/swc-helpers/esm/_iterable_to_array.js

7 lines
224 B
JavaScript
Raw Normal View History

export function _iterable_to_array(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
return Array.from(iter);
}
}
export { _iterable_to_array as _ };