DEV Community

loading...

Discussion on: Is Value an Object

Collapse
ionellupu profile image
Ionel lupu • Edited

This won't work for class instances:

class User{}
const user = new User;
isObject(user); //false
Collapse
patarapolw profile image
Pacharapol Withayasakpunt

This is just what "plain" object is.