ap-component

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ap-component

Weekly Downloads

3

Version

1.0.1

License

none

Last publish

Collaborators

  • jb55