mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-09-15 04:17:22 +00:00
13 lines
277 B
JavaScript
13 lines
277 B
JavaScript
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;
|
|
}; |