Function isObj

  • Checks if a given input is an object.

    Parameters

    • obj: unknown

      The input to be checked if it is an object.

    Returns boolean

    Returns true if the input is a non-empty object, otherwise false.

    Example

    import isObj from "./isObj";

    const obj = { name: "John", age: 25 };
    const result = isObj(obj);
    console.log(result); // true

Generated using TypeDoc