ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
17 lines (16 loc) • 376 B
JavaScript
import { equals, identity, reject, useWith } from 'ramda';
/**
* Filters out every value in a list that equals to first argument.
*
* @func
* @category List
*
* @example
*
* R_.rejectEq('foo', ['foo', 'bar', 'foo', 'bar']); // ['bar', 'bar']
*
* @sig a -> [b] -> [c]
*
*/
var rejectEq = /*#__PURE__*/useWith(reject, [equals, identity]);
export default rejectEq;