• Combine the values of an array up to a certain index.

    Parameters

    • index: number

      The index to accumulate to, everything after this index will not be accumulated.

    • weights: number[]

      An array of values to accumulate.

    Returns number

MMNEPVFCICPMFPCPTTAAATR