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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import {minBy} from 'rambda'
const compareFn = (x: number) => x % 2 === 0 ? 1 : -1const first = 1const second = 2
describe('R.minBy', () => { it('happy', () => { const result = minBy(compareFn, first, second) result // $ExpectType 1 | 2 })})
rambda

Version Info

Tagged at
2 months ago