Check if a value is a plain object (excludes arrays and null). Returns true only for plain objects, false for arrays, null, or other types.
The value to check
Returns true if value is a plain object, false otherwise
import isObject from '~/utils/isObject';isObject({}); // trueisObject({a: 1}); // trueisObject([]); // false (array)isObject(null); // falseisObject('string'); // false Copy
import isObject from '~/utils/isObject';isObject({}); // trueisObject({a: 1}); // trueisObject([]); // false (array)isObject(null); // falseisObject('string'); // false
Check if a value is a plain object (excludes arrays and null). Returns true only for plain objects, false for arrays, null, or other types.