deno.land / x / rambda@v9.1.1 / source / none.spec.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
import { none } from './none.js'
const isEven = n => n % 2 === 0
test('when true', () => { expect(none(isEven, [ 1, 3, 5, 7 ])).toBeTrue()})
test('when false curried', () => { expect(none(input => input > 1, [ 1, 2, 3 ])).toBeFalse()})
rambda

Version Info

Tagged at
2 months ago