arraycalc

    0.1.1 • Public • Published

    arraycalc

    Execute Mathematical functions on arrays

    Installation

    npm install arraycalc

    Usage

    require('arraycalc');
    
        const array = [1,2,1,3]
        console.log("sum :" + array.sum());
        console.log("max :" + array.max());
        console.log("min :" + array.min());
        console.log("avg :" + array.avg());
    
    

    Output should be

        sum : 7
        max : 3
        min : 1
        avg : 1.75
    

    Keywords

    none

    Install

    npm i arraycalc

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    ISC

    Unpacked Size

    9.27 kB

    Total Files

    10

    Last publish

    Collaborators

    • johnakhilomen