it:ad:jscript:objects

/**
 * Copies all the properties of config to obj if they don't already exist.
 * @param {Object} obj The receiver of the properties
 * @param {Object} config The source of the properties
 * @return {Object} returns obj
 */
applyIf : function(object, config) {
    var property, undefined;
    
    if (object) {
        for (property in config) {
            if (object[property] === undefined) {
                object[property] = config[property];
            }
        }
    }
    
    return object;
},
  • /home/skysigal/public_html/data/pages/it/ad/jscript/objects.txt
  • Last modified: 2023/11/04 22:28
  • by 127.0.0.1