@metreeca/core - v0.9.1
    Preparing search index...

    Function isObject

    • Checks if a value is a plain object.

      A plain object is one created by the Object constructor (or object literal syntax), with Object.prototype as its direct prototype. This excludes built-in objects like Date, RegExp, Array, Buffer, DOM elements, and objects created with custom constructors.

      This strict definition ensures safe operations like deep cloning, serialization, and property enumeration that assume simple key-value structure without special behavior or internal state.

      Type Parameters

      • K extends PropertyKey = PropertyKey

        The type of property keys

      • V = unknown

        The type of property values

      Parameters

      • value: unknown

      Returns value is Record<K, V>