Express Sweet API Reference - v3.0.0
    Preparing search index...

    Variable isObject

    isObject: (value: any) => boolean

    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.

    Type Declaration

      • (value: any): boolean
      • Parameters

        • value: any

          The value to check

        Returns boolean

        Returns true if value is a plain object, false otherwise

    import isObject from '~/utils/isObject';

    isObject({}); // true
    isObject({a: 1}); // true
    isObject([]); // false (array)
    isObject(null); // false
    isObject('string'); // false