Node's internal object extension function, for you!
Latest commit 22757dc Jan 9, 2016 @isaacs v1.0.3
Failed to load latest commit information.
LICENSE whoops, this is node-core code, can't be ISC'ed Jan 10, 2016 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


The Node object extending function that Node uses for Node!


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