function merge(target, source) {
  if (typeof source === 'undefined') source = {};

  Object.keys(source).forEach(function(key) {
    if (key === 'threshold') {
      target[key] = threshold(source[key]);
    } else {
      target[key] = source[key];
    }
  });

  return target;
}
// Used to merge user defined plugin options with default options
Used to merge user defined plugin options with default options
Used to merge user defined plugin options with default options
function merge(target, source) {
  if (typeof source === 'undefined') source = {};
  Object.keys(source).forEach(function(key) {
    if (key === 'threshold') {
      target[key] = threshold(source[key]);
    } else {
      target[key] = source[key];
    }
  });
  return target;
}
function merge ( target , source ) { if ( typeof source === 'undefined' ) source = { } ; Object . keys ( source ) . forEach ( function ( key ) { if ( key === 'threshold' ) { target [ key ] = threshold ( source [ key ] ) ; } else { target [ key ] = source [ key ] ; } } ) ; return target ; }
Used to merge user defined plugin options with default options
Used to merge user defined plugin options with default options