These are chat archives for ramda/ramda
nice. I was sort of hoping to not add dependencies if I could get away with it but thanks for that link.
BTW, note that both Partial Lenses and Ramda are modern functional JS libraries in the sense that they support dead code elimination when used via a modern bundler (e.g. Rollup and Webpack (v4 or earlier with module concatenation)) and minifier (e.g. UglifyJS).
objects.filter((o) => !o.foo || o.foo === 'bar')
R.filter(R.anyPass([R.isNil, R.equals('bar')])(R.prop('foo')), objects)but that doesn't quite work...
const filterNotOrBar = filter(pipe(prop('foo'), either(not, identical('bar')))) const result = filterNotOrBar(objects);