unctionjs / splat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@unction/splat

Tests Stability Dependencies

A => Array => C

Takes a curried function (of n depth) and a list of arguments for that function (of n size) and applies those arguments to that function.

splat((a) => (b) => a + b)([1, 2]) // 3

About

License:Other


Languages

Language:JavaScript 97.7%Language:TypeScript 2.3%