deno.land / x / rambda@v9.1.1 / source / without.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 )}
rambda

Version Info

Tagged at
2 months ago