Ramda filter out if field in object matched

PHOTO EMBED

Thu Aug 12 2021 15:04:07 GMT+0000 (UTC)

Saved by @huttyman #undefined

const testArray = [ {

  a:1,b:'aaaaaa'

},{a:3,b:'fdfdf'} ]

​

const isOdd = (n) => {

  return n % 2 === 1

};

​

R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]

​

R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}

​

const aFunction = (n) => {

  console.log(n)

  return n === {a:1,b:'aaaaaa'}

};

R.reject( aFunction ,testArray)
content_copyCOPY

https://ramdajs.com/repl/?v