Skip to main content
Module

x/rambda/source/without.js

Faster and smaller alternative to Ramda
Latest
File
import { _indexOf } from './equals.js'import { reduce } from './reduce.js'
export function without(matchAgainst, source){ if (source === undefined){ return _source => without(matchAgainst, _source) }
return reduce( (prev, current) => _indexOf(current, matchAgainst) > -1 ? prev : prev.concat(current), [], source )}