bakedproject.com Blog Not just another WordPress weblog

22Mar/110

JavaScrpit Object dump like PHP var_dump

A very handy code snippet

1
2
3
4
5
6
7
function dump(obj) {
    var out = '';
    for (var i in obj) {
        out += i + ": " + obj[i] + "\n";
    }
	alert(out);
}

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.