UNPKG

bmad-agent-init

Version:

Windsurf integration for BMAD-METHOD - automatic initialization of bmad-agent in projects

20 lines (18 loc) • 530 B
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; }