src/array/mediateitem.js
function createItemMediator({
    arr,
    mediator
}) {
    return function itemMediator(value, index) {
        // args: value, old value, index, array itself
        return mediator.call(arr, value, index, arr);
    };
}
function createItemMediator({
    arr,
    mediator
}) {
    return function itemMediator(value, index) {
        // args: value, old value, index, array itself
        return mediator.call(arr, value, index, arr);
    };
}
function createItemMediator ( { arr , mediator } ) { return function itemMediator ( value , index ) { // args: value, old value, index, array itself return mediator . call ( arr , value , index , arr ) ; } ; }
creates item mediator
creates item mediator