UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

12 lines (11 loc) 312 B
import { unwrap } from "../utility"; /** * @since 0.0.1 * @category Array * @internal */ export function wrapArrayReducer(reducer) { return function wrapReducer(previousValue, currentValue, currentIndex, array) { return reducer(previousValue, unwrap(currentValue), currentIndex, array); }; }