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

    Function isObject

    • 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.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • value: unknown

        The value to check.

      Returns value is T

      Returns true if value is an object, else false.

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

      isObject(123)
      // => false

      isObject(null)
      // => false