JavasScript shallow object copier that supports getters/setters
Node.js / Browserify:
var overrider = require('overrider').Base;
Browsers:
<script src="http://joneit.github.io/overrider/overrider.js"></script>
or:
<script src="http://joneit.github.io/overrider/overrider.min.js"></script>
var a = { a: 3 };
var b = { b: 5 };
var c = { get abc() { return this.c }, set abc(x) { this.c = x } };
var object = overrider(a, b, c); // result is `a` which now has an `a.b` and the `a.abc` getter and setter
Detailed documentation can be found here.
See the note Regarding submodules for important information on cloning this repo or re-purposing its build template.