Skip to main content
Module

x/rambda/source/any.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {any} from './any'
const list = [1, 2, 3]
test('happy', () => { expect(any(x => x < 0, list)).toBeFalse()})
test('with curry', () => { expect(any(x => x > 2)(list)).toBeTrue()})