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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { maxBy } from './maxBy.js'
test('happy', () => { expect(maxBy( Math.abs, -5, 2 )).toBe(-5)})
test('curried', () => { expect(maxBy(Math.abs)(2, -5)).toBe(-5) expect(maxBy(Math.abs)(2)(-5)).toBe(-5)})
rambda

Version Info

Tagged at
2 months ago