Checks if a given input is an object.
The input to be checked if it is an object.
Returns true if the input is a non-empty object, otherwise false.
true
false
import isObj from "./isObj";const obj = { name: "John", age: 25 };const result = isObj(obj);console.log(result); // true Copy
import isObj from "./isObj";const obj = { name: "John", age: 25 };const result = isObj(obj);console.log(result); // true
Generated using TypeDoc
Checks if a given input is an object.