1.0.0 • Published 9 years ago
fj-always v1.0.0
fj-always
Create a function which always returns a given value.
Installation
npm install fj-always --save
Usage
var always = require('fj-always');
var sayHello = always('hello');
sayHello(); // => 'hello'
sayHello(true); // => 'hello'
sayHello(false); // => 'hello'
sayHello('foo'); // => 'hello'
1.0.0
9 years ago