bpms_site/.svn/pristine/ef/ef0db44a81a0dc8c0c22333bfa9ad54e47d33422.svn-base
2025-11-02 16:38:49 +03:30

25 lines
945 B
Plaintext

"use strict";
var _unsupported_iterable_to_array = require("./_unsupported_iterable_to_array.cjs");
exports._ = exports._create_for_of_iterator_helper_loose = _create_for_of_iterator_helper_loose;
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it) return (it = it.call(o)).next.bind(it);
// Fallback for engines without symbol support
if (Array.isArray(o) || (it = _unsupported_iterable_to_array._(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function() {
if (i >= o.length) return { done: true };
return { done: false, value: o[i++] };
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}