ichigyou
    Preparing search index...

    Function hasProperty

    • Checks if the specified property is an own property of the given object.

      Type Parameters

      • T extends string | number | symbol

        The generic type parameter representing the property keys.

      Parameters

      • obj: Record<string, unknown>

        The object to check against.

      • prop: T

        The property to check for in the object.

      Returns boolean

      • Returns true if the property is an own property of the object, otherwise false.