@writetome51/is-empty-not-empty

    2.0.1 • Public • Published

    isEmpty(arg): boolean

    Returns true if arg.length === 0.

    notEmpty(arg): boolean

    Returns true if arg.length !== 0.

    Examples

    isEmpty([]);
    // --> true
     
    isEmpty('');
    // --> true
     
    isEmpty({length: 0});
    // --> true
     
    notEmpty([0]);
    // --> true

    Installation

    npm i @writetome51/is-empty-not-empty

    Loading

    import { isEmpty, notEmpty } from '@writetome51/is-empty-not-empty';

    Install

    npm i @writetome51/is-empty-not-empty

    DownloadsWeekly Downloads

    27

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    2.56 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar