Have ideas to improve npm?Join in the discussion! »

    @magnetar/is-empty

    1.0.2 • Public • Published

    It will simply check if the provided value qualifies as empty. Will return boolean i.e., (true or false) accordingly.

    Installation via NPM

    npm i @magnetar/is-empty
    

    Usage

    const isEmpty = require('@magnetar/is-empty');
     
    isEmpty(''); // returns true
    isEmpty(false); // returns true
    isEmpty(undefined); // returns true
    isEmpty(null); // returns true
     
    isEmpty('data'); // returns false
    isEmpty(true); // returns false

    Install

    npm i @magnetar/is-empty

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    1.37 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar