x/rambda/source/all.spec.js
12345678910111213141516import {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()})