DEV Community

Discussion on: Learning JavaScript by building a UI framework from scratch

Collapse
 
atongsf profile image
AtongSF

Excellent! While I wonder now that the [[class]] property was removed in ES6, how does Object.prototype.toString.call work.

Collapse
 
carlmungazi profile image
Carl Mungazi

Interesting you mention that. I remember reading the source for one of Lodash's methods and they've stopped using Object.prototype.toString.call in favour of something else. I can't remember what exactly but it was in relation to the [[class]] property.