Skip to main content
Module

x/rambda/always.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { always } from './always'import { F } from './F'
test('happy', () => { const fn = always(7)
expect(fn()).toEqual(7) expect(fn()).toEqual(7)})
test('f', () => { const fn = always(F())
expect(fn()).toBeFalse() expect(fn()).toBeFalse()})