/
moreqqq
/
DeliveryService
Обзор
Документация
Войти
/
moreqqq
/
DeliveryService
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
server/node_modules/iterare/lib/utils.js
21 строка
769 B
moreqqq
написал приложение
29 май 2026, 22:02
29 май 2026, 22:02
ad51790
Код
Авторство
О чём код?
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isIterator(candidate) { return typeof candidate === 'object' && candidate !== null && typeof candidate.next === 'function'; } exports.isIterator = isIterator; function isIterable(candidate) { return typeof candidate === 'object' && candidate !== null && typeof candidate[Symbol.iterator] === 'function'; } exports.isIterable = isIterable; function toIterator(collection) { if (isIterator(collection)) { return collection; } if (isIterable(collection)) { return collection[Symbol.iterator](); } throw new Error('Passed collection is neither an Iterator nor an Iterable'); } exports.toIterator = toIterator; //# sourceMappingURL=utils.js.map