Skip to main content
Module

x/rambda/source/without.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {reduce} from './reduce'import {_indexOf} from './equals'
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 )}