hasOwnProperty

Function

Check if an object has a specific property in a type-safe manner that meets the eslint rule @typescript-eslint/no-prototype-builtins.

  • hasOwnProperty(obj: Record<stringunknown>, prop: PropertyKey) : boolean

Parameters

Parameter Type Default Notes
obj Required Record<stringunknown>
prop Required PropertyKey

Returns

boolean

Function defined in common/src/utils/hasOwnProperty.ts:8