function compact ( var_names ) { // Create array containing variables and their values
//
// + original by: _argos
var Index = 0, Matrix = {};
var Process = function ( value ) {
for ( var i = 0; i < value.length; i++ ) {
var key_value = value [ i ];
if ( key_value instanceof Array ) {
Process ( key_value );
} else {
if ( typeof window [ key_value ] !== 'undefined' ) {
Matrix [ key_value ] = window [ key_value ];
}
}
}
return true;
};
Process ( arguments );
return Matrix;
}