getsetmixin

Express like get/set mixin (Map) for objects

getsetmixin

Simple map like mixin for objects. This was designed to emulate the behaviour of express configuration methods (.get, .set).

var object = { xxx: true };
 
require('getsetmixin')(object);
 
// no conflicts 
object.get('xxx'); // =>  
 
// chainable 
object.set('xxx', 1).
       set('yyy', 2);
 
object.get('xxx'); // => 1 
object.get('yyy'); // => 2