Assigns enumerable properties of the default object(s) to the destination object for all destination properties that resolve to undefined.
$ component install avetisk/defaults
defaults({'x': 1}, {'x': 2, 'y': 2});
// > {'x': 1, 'y': 2}
MIT
Assigns enumerable properties from the default object to destination object for all properties that resolve to undefined.
JavaScript