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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {or} from 'rambda'
describe('R.or', () => { it('happy', () => { const result = or(true, false) result // $ExpectType boolean }) it('with falsy value as first input', () => { const result = or('', false) result // $ExpectType false | "" }) it('curried', () => { const result = or(1)('foo') result // $ExpectType number | "foo" })})
rambda

Version Info

Tagged at
2 months ago