Skip to main content
Module

x/rambda/any-spec.ts

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