encoder.js
function( object ) {
		var keys = Object.keys(object), k, v,
			lVals = [], lArrays = [], lObjects = [];

		// Sort to values, arrays and objects
		var lookupString = "";
		for (var i=0; i<keys.length; ++i) {
			k = keys[i]; v = object[k];
			if ((v instanceof Uint8Array) || (v instanceof Int8Array) ||
				(v instanceof Uint16Array) || (v instanceof Int16Array) ||
				(v instanceof Uint32Array) || (v instanceof Int32Array) ||
				(v instanceof Float32Array) || (v instanceof Float64Array) ||
				(v instanceof Array) ) {
				lookupString += "@"+k;
			} else if (v.constructor === ({}).constructor) {
				lookupString += "%"+k;
			} else {
				lookupString += "$"+k;
			}
		}

		// Return lookup string
		return lookupString;
	}
function( object ) {
		var keys = Object.keys(object), k, v,
			lVals = [], lArrays = [], lObjects = [];

		// Sort to values, arrays and objects
		var lookupString = "";
		for (var i=0; i<keys.length; ++i) {
			k = keys[i]; v = object[k];
			if ((v instanceof Uint8Array) || (v instanceof Int8Array) ||
				(v instanceof Uint16Array) || (v instanceof Int16Array) ||
				(v instanceof Uint32Array) || (v instanceof Int32Array) ||
				(v instanceof Float32Array) || (v instanceof Float64Array) ||
				(v instanceof Array) ) {
				lookupString += "@"+k;
			} else if (v.constructor === ({}).constructor) {
				lookupString += "%"+k;
			} else {
				lookupString += "$"+k;
			}
		}

		// Return lookup string
		return lookupString;
	}
function ( object ) { var keys = Object . keys ( object ) , k , v , lVals = [ ] , lArrays = [ ] , lObjects = [ ] ; // Sort to values, arrays and objects var lookupString = "" ; for ( var i = 0 ; i < keys . length ; ++ i ) { k = keys [ i ] ; v = object [ k ] ; if ( ( v instanceof Uint8Array ) || ( v instanceof Int8Array ) || ( v instanceof Uint16Array ) || ( v instanceof Int16Array ) || ( v instanceof Uint32Array ) || ( v instanceof Int32Array ) || ( v instanceof Float32Array ) || ( v instanceof Float64Array ) || ( v instanceof Array ) ) { lookupString += "@" + k ; } else if ( v . constructor === ( { } ) . constructor ) { lookupString += "%" + k ; } else { lookupString += "$" + k ; } } // Return lookup string return lookupString ; }
Calculate object signature without registering it
Calculate object signature without registering it