ts-utils
    Preparing search index...

    Function sumBy

    • Compute the sum of the given numbers by applying the given iteratee on every item. The result of the iteratee function is then added to the sum.

      Type Parameters

      • Item

        Type of the numbers elements.

      Parameters

      • iteratee: Iteratee<Item>

        The iteratee invoked per item.

      • ...numbers: Item[]

        The numbers to sum.

      Returns number

      The sum of the numbers.