Return to Snippet

Revision: 34050
at October 16, 2010 08:55 by virua


Initial Code
function dump(obj) {
    var out = '';
    if(obj && typeof(obj) == 'object'){
        for (var i in obj) {
        	out += i + ": " + obj[i] + "\n";
        }
    } else {
        out = obj;
    }
    alert(out);
}

Initial URL

                                

Initial Description

                                

Initial Title
var_dump in JavaScript

Initial Tags
javascript

Initial Language
JavaScript