isObject
isObject Checks if a value is an object.
Parameter:
value- The value to evaluate.Returns:
boolean- Returnstrueif the value is an object,falseotherwise.
Examples:
const obj = { key: 'value' };
console.log(isObject(obj)); // Output: true
const str = 'Hello world';
console.log(isObject(str)); // Output: falseLast updated