mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
19
node_modules/d3-array/src/superset.js
generated
vendored
Normal file
19
node_modules/d3-array/src/superset.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user