Wondering what’s next for npm?Check out our public roadmap! »

    nou

    0.0.1 • Public • Published

    nou

    nou = Null Or Undefined

    Tired of writing util.isNullOrUndefined? This module is for you! It creates shortcut methods such as isNou or isNull.

    Usage:

    `` const nou = require('nou');

    var x; //x is undefined

    nou.isNou(null); //true nou.isNou(x); //true nou.isNull(null); //true nou.isNull(x); //true

    nou.isNotNou(""); //true nou.isNotNull(""); //true nou.isDefined(""); //true ``

    this is the actual code: module.exports = { isNou: (x) => { return util.isNullOrUndefined(x); }, isNotNou: (x) => { return !util.isNullOrUndefined(x); }, isNull: (x) => { return util.isNullOrUndefined(x); }, isNotNull: (x) => { return !util.isNullOrUndefined(x); }, isDefined: (x) => { return !util.isNullOrUndefined(x); } }

    installation: npm i --save nou

    Install

    npm i nou

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    2.96 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar