loading...

re: Is Value an Object VIEW POST

TOP OF THREAD FULL DISCUSSION
re: For "plain" object, I rely on function isObject(val){ return ( !!val && typeof val === 'object' && val.constructo...
 

This won't work for class instances:

class User{}
const user = new User;
isObject(user); //false
 

This is just what "plain" object is.

Code of Conduct Report abuse