.todo/miapp.tools.array.js
function addSubKeyToList(list, sub, key, object) {
    for (var i = list.length - 1; i >= 0; i--) {
        if (a4p.isDefined(list[i][sub]) && (list[i][sub][key] == object[sub][key])) {
            return false;
        }
    }
    list.push(object);
    return true;
}
function addSubKeyToList(list, sub, key, object) {
    for (var i = list.length - 1; i >= 0; i--) {
        if (a4p.isDefined(list[i][sub]) && (list[i][sub][key] == object[sub][key])) {
            return false;
        }
    }
    list.push(object);
    return true;
}
function addSubKeyToList ( list , sub , key , object ) { for ( var i = list . length - 1 ; i >= 0 ; i -- ) { if ( a4p . isDefined ( list [ i ] [ sub ] ) && ( list [ i ] [ sub ] [ key ] == object [ sub ] [ key ] ) ) { return false ; } } list . push ( object ) ; return true ; }
Add in list the argument object if none has the same sub.key attribute

@param list Array of objects having sub.key attribute
@param {string} sub
@param {string} key
@param object New object to add
@return {boolean} True if added or false if already exists in list
Add in list the argument object if none has the same sub . key attribute