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

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

Version Info

Tagged at
2 months ago