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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
import { any } from './any.js'
const list = [ 1, 2, 3 ]
test('happy', () => { expect(any(x => x < 0, list)).toBeFalse()})
test('with curry', () => { expect(any(x => x > 2)(list)).toBeTrue()})
rambda

Version Info

Tagged at
2 months ago