I’m using an object as a hash table. I’d like to quickly print out its contents (for alert() for instance). Is there anything built in to convert a hash into arrays of (key, value) pairs?
I’m using an object as a hash table. I’d like to quickly print out
Share
I updated this some more. This is much easier to parse than even console.log because it leaves out the extra stuff that’s in there like
__proto__.The only thing I would do to improve this is have it indent correctly based on recursion level.