Node's internal object extension function, for you!
JavaScript
Latest commit 22757dc Jan 9, 2016 @isaacs v1.0.3
Permalink
Failed to load latest commit information.
LICENSE whoops, this is node-core code, can't be ISC'ed Jan 10, 2016
README.md the real order of arguments is `defaults, options` Mar 15, 2013
extend.js extend.js Feb 23, 2013
package.json v1.0.3 Jan 10, 2016
test.js test.js Feb 23, 2013

README.md

util-extend

The Node object extending function that Node uses for Node!

Usage

var extend = require('util-extend');
function functionThatTakesOptions(options) {
  var options = extend(defaults, options);
  // now any unset options are set to the defaults.
}