lib/utils.js
/**
 * Basic extend function to merge objects
 * @param  {Object} destination Destination object for all source objects to merge into
 * @param  {Object} ...sources  Source objects to merge
 * @return {Object}
 */
Basic extend function to merge objects
@param  {Object} destination Destination object for all source objects to merge into
@param  {Object} ...sources  Source objects to merge
@return {Object}
Basic extend function to merge objects @param { Object } destination Destination object for all source objects to merge into @param { Object } ... sources Source objects to merge @return { Object }
function extend(destination) {
  var sources = Array.prototype.slice.call(arguments, 1);
  sources.forEach(function(source) {
    for (var prop in source) {
      if (source.hasOwnProperty(prop)) {
        destination[prop] = source[prop];
      }
    }
  });
  return destination;
}
function extend ( destination ) { var sources = Array . prototype . slice . call ( arguments , 1 ) ; sources . forEach ( function ( source ) { for ( var prop in source ) { if ( source . hasOwnProperty ( prop ) ) { destination [ prop ] = source [ prop ] ; } } } ) ; return destination ; }
Basic extend function to merge objects
 @param  {Object} destination Destination object for all source objects to merge into
 @param  {Object} ...sources  Source objects to merge
 @return {Object}
Basic extend function to merge objects @param { Object } destination Destination object for all source objects to merge into @param { Object } ... sources Source objects to merge @return { Object }