@yesstudio/yes-utils
    Preparing search index...

    Function isEmptyObject

    • Checks if value is the language type of Object, that is, a value that is not null and has a typeof result of function or object and has no own enumerable string-keyed properties.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • value: unknown

        The value to check.

      Returns value is T

      Returns true if value is an empty object, else false.

      isEmptyObject({})
      // => true

      isEmptyObject({ a: 1, b: 2, c: 3 })
      // => false