x/rambda/any.spec.js
123456789101112import { 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()})