3 ms·
What about calling toString() on an object? I think serializing the object would be more useful than [object Object]. I'm sure JSON.stringify didn't exist origi
by ficklepickle 8y ago
What about calling toString() on an object? I think serializing the object would be more useful than [object Object].
I'm sure JSON.stringify didn't exist originally, so it wasn't an option. I guess it must be for backwards compatibility, but I can't think of much of a use case. Maybe something somewhere uses it instead of typeof?