BonsaiDen/JavaScript-Garden

Object.prototype.toString() behaviour

artptr opened this issue · 2 comments

According to "The Class of an Object" section, the method Object.prototype.toString()returns [[Class]] internal value. But according to the section 15.2.4.2 of the ECMAScript 5.1 Specification, this method should return string values like '[object Null]', '[object Undefined]', '[object String]', etc.

You're right, the text isn't clear. Will update!

deployed