deno.land / x / rambda@v9.1.1 / source / find-spec.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {find} from 'rambda'
const list = [1, 2, 3]
describe('R.find', () => { it('happy', () => { const predicate = (x: number) => x > 2 const result = find(predicate, list) result // $ExpectType number | undefined }) it('curried', () => { const predicate = (x: number) => x > 2 const result = find(predicate)(list) result // $ExpectType number | undefined })})
rambda

Version Info

Tagged at
2 months ago