Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
var clone = require('clone');
|
||||
|
||||
module.exports = function(options, defaults) {
|
||||
options = options || {};
|
||||
|
||||
Object.keys(defaults).forEach(function(key) {
|
||||
if (typeof options[key] === 'undefined') {
|
||||
options[key] = clone(defaults[key]);
|
||||
}
|
||||
});
|
||||
|
||||
return options;
|
||||
};
|
||||
Reference in New Issue
Block a user