/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/d3-array/src/superset.js
19 строк
530 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
export default function superset(values, other) { const iterator = values[Symbol.iterator](), set = new Set(); for (const o of other) { const io = intern(o); if (set.has(io)) continue; let value, done; while (({value, done} = iterator.next())) { if (done) return false; const ivalue = intern(value); set.add(ivalue); if (Object.is(io, ivalue)) break; } } return true; } function intern(value) { return value !== null && typeof value === "object" ? value.valueOf() : value; }