Skip to content

Instantly share code, notes, and snippets.

@bezenson
bezenson / 01_uniqWithByFields.js
Last active August 25, 2020 22:19
Ramda uniqWith by multiple keys in object
import { allPass, curry, eqProps, map, uniqWith } from 'ramda';
const uniqWithByFields = curry((fields, data) => uniqWith(
allPass(
map(eqProps)(fields)
),
)(data));