vm/moonshine.js
function (table) {
			var isArr = shine.lib.table.getn (table) > 0,
				result = shine.gc['create' + (isArr? 'Array' : 'Object')](),
				numValues = table.__shine.numValues,
				i,
				l = numValues.length;

			for (i = 1; i < l; i++) {
				result[i - 1] = ((numValues[i] || shine.EMPTY_OBJ) instanceof shine.Table)? shine.utils.toObject(numValues[i]) : numValues[i];
			}

			for (i in table) {
				if (table.hasOwnProperty(i) && !(i in shine.Table.prototype) && i !== '__shine') {
					result[i] = ((table[i] || shine.EMPTY_OBJ) instanceof shine.Table)? shine.utils.toObject(table[i]) : table[i];
				}
			}
			
			return result;
		}
function (table) {
			var isArr = shine.lib.table.getn (table) > 0,
				result = shine.gc['create' + (isArr? 'Array' : 'Object')](),
				numValues = table.__shine.numValues,
				i,
				l = numValues.length;

			for (i = 1; i < l; i++) {
				result[i - 1] = ((numValues[i] || shine.EMPTY_OBJ) instanceof shine.Table)? shine.utils.toObject(numValues[i]) : numValues[i];
			}

			for (i in table) {
				if (table.hasOwnProperty(i) && !(i in shine.Table.prototype) && i !== '__shine') {
					result[i] = ((table[i] || shine.EMPTY_OBJ) instanceof shine.Table)? shine.utils.toObject(table[i]) : table[i];
				}
			}
			
			return result;
		}
function ( table ) { var isArr = shine . lib . table . getn ( table ) > 0 , result = shine . gc [ 'create' + ( isArr ? 'Array' : 'Object' ) ] ( ) , numValues = table . __shine . numValues , i , l = numValues . length ; for ( i = 1 ; i < l ; i ++ ) { result [ i - 1 ] = ( ( numValues [ i ] || shine . EMPTY_OBJ ) instanceof shine . Table ) ? shine . utils . toObject ( numValues [ i ] ) : numValues [ i ] ; } for ( i in table ) { if ( table . hasOwnProperty ( i ) && ! ( i in shine . Table . prototype ) && i !== '__shine' ) { result [ i ] = ( ( table [ i ] || shine . EMPTY_OBJ ) instanceof shine . Table ) ? shine . utils . toObject ( table [ i ] ) : table [ i ] ; } } return result ; }
Converts a Lua table and all of its nested properties to a JavaScript objects or arrays.
@param {shine.Table} table The Lua table object.
@returns {Object} The converted object.
Converts a Lua table and all of its nested properties to a JavaScript objects or arrays .