xdash API Reference / hasOwn
Function: hasOwn()
hasOwn(
obj
,key
,param2
):key is any
Defined in: src/typed.ts:131
Determines if an object has a key.
Parameters
obj
Record
<any
, any
>
object to check
key
PropertyKey
key to check
param2
options to customize the check
ignoreCase?
boolean
= false
Returns
key is any
true if the object has the key, false otherwise