UNPKG

moy-fp

Version:
16 lines (14 loc) 289 B
/** * ((y -> z) -> (x -> y) -> ... -> (a -> b)) -> (a -> z) * notice that compose is not a curry function */ import compose from '../../src/Function/compose' test('compose', () => { expect( compose( x => x * 2, x => x / 3, x => x + 1, )(17) ).toBe(12) })