Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
446 B
Text
19 lines
446 B
Text
import {InternSet} from "internmap";
|
|
|
|
export default function intersection(values, ...others) {
|
|
values = new InternSet(values);
|
|
others = others.map(set);
|
|
out: for (const value of values) {
|
|
for (const other of others) {
|
|
if (!other.has(value)) {
|
|
values.delete(value);
|
|
continue out;
|
|
}
|
|
}
|
|
}
|
|
return values;
|
|
}
|
|
|
|
function set(values) {
|
|
return values instanceof InternSet ? values : new InternSet(values);
|
|
}
|