Nefariously Programmed Mecha

    are-equal

    1.0.0 • Public • Published

    are-equal

    version last commit rating license

    "are-equal" is a very lightweight and fast Javascript library for comparing equality by value of any number of given variables of any type and without any order or sorting.

    Features

    • Lightweight and fast
    • Compare equality by value
    • Compare any types
    • Sorting isn't required
    • Takes multiple arguments
    • Returns true if equal, else false
    • Available as CommonJS and ES6 Module format
    • 0 dependencies

    Installation

    npm i are-equal

    Usage

    CommonJS

    const areEqual = require("are-equal");
    
    /* returns "true" if equal, "false" if not */
    areEqual(item1, item2);

    ES6 Module

    // Path shown from root directory
    import areEqual from "./node_modules/are-equal/are-equal.es6";
    
    /* returns "true" if equal, "false" if not */
    areEqual(item1, item2);

    Contributing

    Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

    License

    GPLv3

    Install

    npm i are-equal

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    GPLv3

    Unpacked Size

    41.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • abhishek.biswas.npm