Skip to main content
Module

x/rambda/source/curry-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {curry} from 'rambda'
function source(a: number, b: number, c: number, d: number) { void d
return a * b * c}
describe('R.curry', () => { it('happy', () => { const curried = curry(source)
const result1 = curried(1)(2)(3) const result2 = curried(1, 2)(3) const result3 = curried(1)(2, 3) const result4 = curried(1, 2, 3)
result1 // $ExpectType any result2 // $ExpectType any result3 // $ExpectType any result4 // $ExpectType any })})