Skip to main content
Module

x/rambda/min-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {min} from 'rambda'
const first = 1const second = 2
describe('R.min', () => { it('happy', () => { const result = min(first, second) result // $ExpectType 1 | 2 }) it('curried', () => { const result = min(first, second) result // $ExpectType 1 | 2 }) it('curried - cann pass type', () => { const result = min<number>(first, second) result // $ExpectType number }) it('can pass type', () => { const result = min<number>(first, second) result // $ExpectType number })})