Skip to main content

Documentation Index

Fetch the complete documentation index at: https://kk-83bff226.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Signature

path=null start=null
hasProperty<T extends string | number | symbol>(
  obj: Record<string, unknown>,
  prop: T,
): boolean

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.

Source

Defined in object.ts:10