Skip to main content
Module

x/rambda/piped.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { add } from './add'import { filter } from './filter'import { map } from './map'import { piped } from './piped'
test('happy', () => { const result = piped( [ 1, 2, 3 ], filter(x => x > 1), map(x => x * 10), map(add(1)) ) const expectedResult = [ 21, 31 ]
expect(result).toEqual(expectedResult)})