UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

14 lines 481 B
/** * Gets Array of intersection of two given Arrays * @param arr1{Array} - first source Array * @param arr2{Array} - second source Array * @return {Array} * @example * // How to get intersection of two Arrays? * const arr1 = [ 1, 2, 3 ]; * const arr2 = [ 2, 3, 4, 5 ]; * const intersection = getIntersection(arr1, arr2); * console.log(intersection); // => [ 2, 3 ] */ export function getIntersection(arr1: any[], arr2: any[]): any[]; //# sourceMappingURL=index.d.ts.map