lib/util.js
// This finds all the objects keys, which do not contain the magic marker.
This finds all the objects keys, which do not contain the magic marker.
This finds all the objects keys which do not contain the magic marker .
function ownRealKeys(o, magic) {
    var accumulator = [];
    for (var propertyName in o) {
    	if ( o.hasOwnProperty(propertyName) 
    	  && propertyName.slice(0, magic.length) !== magic
    	    ) {
    		accumulator.push(propertyName);
    	}
    }
    return accumulator;
}
function ownRealKeys ( o , magic ) { var accumulator = [ ] ; for ( var propertyName in o ) { if ( o . hasOwnProperty ( propertyName ) && propertyName . slice ( 0 , magic . length ) !== magic ) { accumulator . push ( propertyName ) ; } } return accumulator ; }
This finds all the objects keys, which do not contain the magic marker.
This finds all the objects keys which do not contain the magic marker .
//console.log('o', JSON.stringify(o), 'magic', magic); // FIXME: we should find a way of checking that the trailing magic is  // present too. 