Skip to content

unctionjs/splat

Repository files navigation

@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