hashtree.js
function Ops (ref, key) {
		this.ref = ref;
		this.key = key;

		if (this.ref[this.key] === undefined) {
			this.ref[this.key] = 0;
		}
		this._toNumber();

		this.isNumber = (typeof this.ref[this.key] === 'number');
		this.isBoolean = (typeof this.ref[this.key] === 'boolean');
		this.isString = (typeof this.ref[this.key] === 'string');
		this.isArray = Array.isArray(this.ref[this.key]);
		this.isObject = (!this.isArray && typeof this.ref[this.key] === 'object');
	}
function Ops (ref, key) {
		this.ref = ref;
		this.key = key;

		if (this.ref[this.key] === undefined) {
			this.ref[this.key] = 0;
		}
		this._toNumber();

		this.isNumber = (typeof this.ref[this.key] === 'number');
		this.isBoolean = (typeof this.ref[this.key] === 'boolean');
		this.isString = (typeof this.ref[this.key] === 'string');
		this.isArray = Array.isArray(this.ref[this.key]);
		this.isObject = (!this.isArray && typeof this.ref[this.key] === 'object');
	}
function Ops ( ref , key ) { this . ref = ref ; this . key = key ; if ( this . ref [ this . key ] === undefined ) { this . ref [ this . key ] = 0 ; } this . _toNumber ( ) ; this . isNumber = ( typeof this . ref [ this . key ] === 'number' ) ; this . isBoolean = ( typeof this . ref [ this . key ] === 'boolean' ) ; this . isString = ( typeof this . ref [ this . key ] === 'string' ) ; this . isArray = Array . isArray ( this . ref [ this . key ] ) ; this . isObject = ( ! this . isArray && typeof this . ref [ this . key ] === 'object' ) ; }
Helper class for hashTree.use
@param {Object} ref : reference in object
@param {String} key : key for value to change
Helper class for hashTree . use