deno.land / x / rambda@v9.1.1 / source / all.spec.js
12345678910111213141516import { all } from './all.js'
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()})
Version Info