# Code coverage report for lib/utils/extend.js

## Statements: 100% (9 / 9) Branches: 100% (2 / 2) Functions: 100% (1 / 1) Lines: 100% (8 / 8) Ignored: none

All files » lib/utils/ » extend.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    111
    190
    190
    190
    328
    328
    1352

    190
     module.exports = function(to) {
      if (!to) to = {};
      var froms = Array.prototype.slice.call(arguments, 1);
      for (var i = 0, n = froms.length; i < n; i++) {
        var from = froms[i];
        for (var key in from) {
          to[key] = from[key];
        }
      }
      return to;
    };