UNPKG

arquero

Version:

Query processing and transformation of array-backed data tables.

5 lines (4 loc) 98 B
export function intersect(a, b) { const set = new Set(b); return a.filter(x => set.has(x)); }