fj-always

1.0.0 • Public • Published

fj-always

Build Status npm version

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'

Readme

Keywords

Package Sidebar

Install

npm i fj-always

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • schtoeffel
  • hemanth