util-extend

Node's internal object extension function

MIT 4 个版本
安装
npm install util-extend
yarn add util-extend
pnpm add util-extend
bun add util-extend
README

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.
}
版本列表
1.0.3 2016-01-10
1.0.2 2016-01-10
1.0.1 2013-07-22
1.0.0 2013-02-23