I was wondering if there is a quick way to get all the values โโof the object variables similar to the php var_dump()
method.
So, if I had an object
var myObject = { Up: 38, Dn: 40, Lf: 37, Rt: 39, Enter: 13, Space: 32, Esc: 27 };
The line that I will return to will look something like
[ Up:38, Dn:40, Lf:37, Rt:39, Enter:13, Space:32, Esc:27 ]
Let's say I need to do this on a computer where I cannot use firebug. Is there a way to do this without repeating all the parameters in the object? Is there a separate library that has something like this?
source share