I\'ve an array like:
ids = [1,3,5];
and another array like:
items: [ {id: 1, name: \'a\'}, {id: 2, name: \'b\'}, {id: 3,
If you still want to do with Ramda:
const ids = [1,3,5]; const items = [ {id: 1, name: 'a'}, {id: 2, name: 'b'}, {id: 3, name: 'c'}, {id: 4, name: 'd'}, {id: 5, name: 'e'}, {id: 6, name: 'f'} ]; console.log( R.filter(R.compose(R.flip(R.contains)(ids), R.prop('id')), items) );