Nascent Prototype Metaverse
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    fj-alwayspublic

    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'

    Keywords

    install

    npm i fj-always

    Downloadsweekly downloads

    3

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar