With minor changes to the answer by @Ori Drori, here is a complete point-free style version where keys are passed as a parameter instead of being hardcoded:
import {pickBy, map} from 'ramda'
const users = [
{
id: 1,
name: 'John',
lastName: 'Smith',
note: null
},
{
id: 2,
name: 'Jill',
lastName: null,
note: 'note 2',
},
{
id: 3,
name: null,
lastName: 'Smith',
note: null
}
];
const removeNullExcept = (keys = []) => map(pickBy((val, key) => val !== null || keys.includes(key)))
const result = removeNullExcept(['note'])(users)
console.log(result)