Nonchalantly Performs Magic

    just-mean
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    just-mean

    Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

    import mean from 'just-mean';
    
    mean([1, 2, 3, 2, 4, 1]); // 2.1666666667
    mean(3, 2, 1); // 2
    mean([4]); // 4
    mean(['3', 2]); // throws
    mean(); // throws

    Install

    npm i just-mean

    DownloadsWeekly Downloads

    15

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    2.81 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar