.todo/miapp.tools.array.js
function replaceKeyFromList(list, key, value, object) {
    for (var i = list.length - 1; i >= 0; i--) {
        if (list[i][key] == value) {
            return list.splice(i, 1, object); // remove from array and replace by the new object
        }
    }
    return false;
}
function replaceKeyFromList(list, key, value, object) {
    for (var i = list.length - 1; i >= 0; i--) {
        if (list[i][key] == value) {
            return list.splice(i, 1, object); // remove from array and replace by the new object
        }
    }
    return false;
}
function replaceKeyFromList ( list , key , value , object ) { for ( var i = list . length - 1 ; i >= 0 ; i -- ) { if ( list [ i ] [ key ] == value ) { return list . splice ( i , 1 , object ) ; // remove from array and replace by the new object } } return false ; }
Replace in list the last object having the same key attribute as value

@param list Array of objects having key attribute comparable to value
@param {string} key
@param value
@param object New object replacing the old one
@return {*} Array of replaced item or false
Replace in list the last object having the same key attribute as value