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;
};| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| .npmignore | File | 13 B | 0644 |
|
| LICENSE | File | 1.05 KB | 0644 |
|
| README.md | File | 827 B | 0644 |
|
| index.js | File | 277 B | 0644 |
|
| package.json | File | 1.34 KB | 0644 |
|
| test.js | File | 1.03 KB | 0644 |
|