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

    Function isNonEmptyPlainObject

    • Checks if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null 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 plain object, else false.

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

      isNonEmptyPlainObject({})
      // => false