4 ms·
The spec leaves that up to the implementation: https://console.spec.whatwg.org/#log https://console.spec.whatwg.org/#log Node does some custom fanciness, but O
by jhardy54 6y ago
The spec leaves that up to the implementation: https://console.spec.whatwg.org/#log https://console.spec.whatwg.org/#log
Node does some custom fanciness, but Object.prototype.toString() is equally correct.
- svnpenn 6y agoWorkaround: let m = {year: 2019}; let s = JSON.stringify(m); console.log(s); // {"year":2019}