Skip to content

curry

Summary

Return a curried version of fn.

Examples

1
2
3
4
const add = curry((a, b) => a + b);
[1, 2, 3].map(add(10));
//=> [11, 12, 13]

Parameters

Name Type Description
fn function Function to curry.

Return

function

AltStyle によって変換されたページ (->オリジナル) /