UNPKG

wtf_wikipedia

Version:
13 lines (12 loc) 353 B
/** * applies the the key values of defaults to options * * @private * @param {object} options the user options * @param {object} defaults the defaults * @returns {object} the user options with the defaults applied */ const setDefaults = function (options, defaults) { return Object.assign({}, defaults, options) } module.exports = setDefaults