In Ruby, you can do foo.inspect and it outputs something sane for any object pretty much regardless of type.
How do I achieve the same thing in JavaScript?
In Ruby, you can do foo.inspect and it outputs something sane for any object pretty much regardless of type.
How do I achieve the same thing in JavaScript?