Skip to content

fp-js/fj-apply

Repository files navigation

fj-apply

Build Status npm version

apply in functional style!

Installation

npm install fj-apply --save

Usage

var apply = require('fj-apply');
apply(Math.min,[-1,1,2,42,0]); // -1

API

(*... -> a) -> [*]-> a
  • fn (madatory) function to applied.

  • arg (madatory) arguments with which fn should be called.