@yookue/ts-lang-utils
    Preparing search index...

    Function average

    • Returns the average value of the given array

      Parameters

      • Optionalvalues: number[]

        the array to calculate

      Returns undefined | number

      the average value of the given array

      David Hsing

      average([1, 2, 3]);    // 2