Buckets:
| 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; | |
| } | |
Xet Storage Details
- Size:
- 530 Bytes
- Xet hash:
- 7839c8a0f0aac5e9fe8a364739a182e018aa172cfbe3e79a47e43cd37e753ce3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.