All files / src/utils extend.js

87.5% Statements 7/8
50% Branches 1/2
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19        17x   166x     166x 166x 166x 167x       166x    
/*
 * Source: https://github.com/segmentio/extend
 */
 
module.exports = function extend (object) {
    // Takes an unlimited number of extenders.
    var args = Array.prototype.slice.call(arguments, 1);
 
    // For each extender, copy their properties on our object.
    for (var i = 0, source; source = args[i]; i++) {
        Iif (!source) continue;
        for (var property in source) {
            object[property] = source[property];
        }
    }
 
    return object;
};