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'

/fj-always/

    Package Sidebar

    Install

    npm i fj-always

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • schtoeffel
    • hemanth