Skip to content

intesso/defaults-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defaults-clone

Deep defaults based on defaults-deep with cloned arguments using clone-deep.

for node.js and the browser with browserify.

also handles functions in the object tree nicely.

install

npm install --save defaults-clone

use

var defaults = require('defaults-clone');

defaults({a: {one: 'one'}}, {a: {two: 'two'}})
//=> {a: {one: 'one', two: 'two'}};

test

npm test

license

MIT with code from defaults-deep wit MIT License

About

deep defaults with cloned arguments

Resources

Stars

Watchers

Forks

Packages

No packages published