Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 515 Bytes

README.markdown

File metadata and controls

26 lines (16 loc) · 515 Bytes

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.