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

    Function isNonEmptyObject

    • 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 at least one own enumerable string-keyed property.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • value: unknown

        The value to check.

      Returns value is T

      Returns true if value is a non-empty object, else false.

      isNonEmptyObject({ a: 1, b: 2, c: 3 })
      // => true

      isNonEmptyObject({})
      // => false