Skip to content

jb55/ap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ap

Apply function, otherwise return value

Installation

$ component install jb55/ap

API

var ap = require('ap')
  , valA = function(x) { return 2 * x; }
  , valB = 4
  , a = ap(valA, 2)
  , b = ap(valB, 2)
  , tru = a === b;

License

MIT

About

Apply function, otherwise return value

Resources

Stars

Watchers

Forks

Packages

No packages published