mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-27 04:04:46 +01:00
13 lines
No EOL
277 B
JavaScript
13 lines
No EOL
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;
|
|
}; |