reduceRight<T> method

T reduceRight<T>(
  1. T fn(
    1. T accumulator,
    2. T currentValue,
    3. int currentIndex,
    4. JsArray<E> array,
    ),
  2. T initialValue
)

Implementation

T reduceRight<T>(
        T Function(T accumulator, T currentValue, int currentIndex,
                JsArray<E> array)
            fn,
        T initialValue) =>
    jsu.callMethod(this, 'reduceRight', [allowInterop(fn), initialValue]);