Skip to content

intersection

Returns elements present in both arrays.

ts
import { intersection } from '@vielzeug/toolkit';

intersection([1, 2, 3], [2, 3, 4]); // [2, 3]