src/query.js
function mutate(entities, operationDescription, transformation) {
    if (!operationDescription) {
        return object;
    }

    return entities.map(item => {
        Object.keys(operationDescription)
            .forEach(key => transformation(item, key, operationDescription[key]));

        return item;
    });
}
function mutate(entities, operationDescription, transformation) {
    if (!operationDescription) {
        return object;
    }

    return entities.map(item => {
        Object.keys(operationDescription)
            .forEach(key => transformation(item, key, operationDescription[key]));

        return item;
    });
}
function mutate ( entities , operationDescription , transformation ) { if ( ! operationDescription ) { return object ; } return entities . map ( item => { Object . keys ( operationDescription ) . forEach ( key => transformation ( item , key , operationDescription [ key ] ) ) ; return item ; } ) ; }
Mutates the object according to the transform logic.

@param {object} entities Original entity object
@param {object} operationDescription Update descriptor
@param {function} transformation Transformator function
@returns {object}
Mutates the object according to the transform logic .