Open gajus opened 8 years ago
Well, but:
({}).constructor.name
"Object"
("").constructor.name
"String"
For some reason I assumed that plain object does not have .constructor.name
.
@gajus Just noticed that natives should be primitives: https://developer.mozilla.org/en-US/docs/Glossary/Primitive Oopsie!
OK
OK
OK
NOT OK
OK
OK
OK