spreadshirt.js
/***
     * extend the first object with all keys from the following objects
     *
     * @param [result]
     * @returns {Object}
     */
extend the first object with all keys from the following objects
@param [result]
@returns {Object}
extend the first object with all keys from the following objects @param [ result ] @returns { Object }
function extend(result) {
        var args = Array.prototype.slice.call(arguments);
        if (args.length > 1) {
            for (var i = 1; i < args.length; i++) {
                var obj = args[i];
                for (var key in obj) {
                    if (obj.hasOwnProperty(key)) {
                        result[key] = obj[key];
                    }
                }
            }
        }
        return result;
    }
function extend ( result ) { var args = Array . prototype . slice . call ( arguments ) ; if ( args . length > 1 ) { for ( var i = 1 ; i < args . length ; i ++ ) { var obj = args [ i ] ; for ( var key in obj ) { if ( obj . hasOwnProperty ( key ) ) { result [ key ] = obj [ key ] ; } } } } return result ; }
extend the first object with all keys from the following objects
 @param [result]
 @returns {Object}
extend the first object with all keys from the following objects @param [ result ] @returns { Object }