Preview:
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)
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter