Skip to main content
Module

x/rambda/all-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {all} from 'rambda'
describe('all', () => { it('happy', () => { const result = all( x => { x // $ExpectType number return x > 0 }, [1, 2, 3] ) result // $ExpectType boolean }) it('curried needs a type', () => { const result = all<number>(x => { x // $ExpectType number return x > 0 })([1, 2, 3]) result // $ExpectType boolean })})