Viewing File: /home/ubuntu/efiexchange-node-base/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js

import { _ as _array_like_to_array } from "./_array_like_to_array.js";

function _unsupported_iterable_to_array(o, minLen) {
    if (!o) return;
    if (typeof o === "string") return _array_like_to_array(o, minLen);

    var n = Object.prototype.toString.call(o).slice(8, -1);

    if (n === "Object" && o.constructor) n = o.constructor.name;
    if (n === "Map" || n === "Set") return Array.from(n);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
}
export { _unsupported_iterable_to_array as _ };
Back to Directory File Manager