Checks if given value is a plain object. Plain object should be an object that's not an instance of anything.
isPlainObject({}); // returns true Copy
isPlainObject({}); // returns true
isPlainObject(Object.create(null)); // returns true Copy
isPlainObject(Object.create(null)); // returns true
isPlainObject(new URL("https://ezez.dev")); // returns false Copy
isPlainObject(new URL("https://ezez.dev")); // returns false
isPlainObject([]); // returns false Copy
isPlainObject([]); // returns false
isPlainObject(5); // returns false Copy
isPlainObject(5); // returns false
value to test
Checks if given value is a plain object. Plain object should be an object that's not an instance of anything.
Example
Example
Example
Example
Example