0.0.2 • Published 9 years ago

based-on v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

based-on

var settings = basedOn({
    key: 'value',
    other: 'value2'
});

settings();
// { key: 'value', other: 'value2' }

settings({ test: 'ing' })
// { key: 'value', other: 'value2', test: 'ing' }

var otherSettings = settings.with({ other: 'true' });

otherSettings();
// { key: 'value', other: 'true' }

otherSettings({ key: 'test' });
// { key: 'test', other: 'true' }

Install

npm:

npm install based-on

Bower:

bower install based-on

Or just download from here

0.0.2

9 years ago

0.0.1

10 years ago