wtf_wikipedia
Version:
parse wikiscript into json
13 lines (12 loc) • 353 B
JavaScript
/**
* 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