about summary refs log tree commit diff stats
BranchCommit messageAuthorAge
master*elioat15 hours
 
tle='author elioat <hi@eli.li> 2023-07-18 14:02:29 -0400 committer elioat <hi@eli.li> 2023-07-18 14:02:29 -0400 *' href='/elioat/tour/commit/js/curry.js?id=dd55dd0bc450400e676a3b1e874921bf05242f17'>dd55dd0 ^
1
2
3
4
5
6
7
8
9
10
11










                                        
function curry(fn) {
  const arity = fn.length;

  return function $curry(...args) {
    if (args.length < arity) {
      return $curry.bind(null, ...args);
    }

    return fn.call(null, ...args);
  };
}