Defaults recursively merges object properties from all supplied objects. If a property already exists, then the existing one is kept when merged from left to right.
object
(object): input objectsources
(...object): input source object(s)
(object): returns new object
const someObj = { hold: 44 };
const result = objects.defaults(someObj, { hold: 25, your: 19, horses: 4 });
console.log(result);
> { hold: 44, your: 19, horses: 4 }