mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
7 lines
224 B
JavaScript
7 lines
224 B
JavaScript
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 _ };
|