stluafed

merge two objects keys if absents from source object

npm install stluafed
10 downloads in the last week
26 downloads in the last month

Build Status

defaults

Assigns enumerable properties of the default object(s) to the destination object for all destination properties that resolve to undefined.

Installation

$ component install avetisk/defaults

API

defaults(obj1, obj2)

defaults({'x': 1}, {'x': 2, 'y': 2});
// > {'x': 1, 'y': 2}

License

MIT

npm loves you