Skip to main content
Module

x/rambda/all.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { all } from './all'
const list = [ 0, 1, 2, 3, 4 ]
test('when true', () => { const fn = x => x > -1
expect(all(fn)(list)).toBeTrue()})
test('when false', () => { const fn = x => x > 2
expect(all(fn, list)).toBeFalse()})