xdash / hasOwn
Function: hasOwn()
hasOwn(
obj
,key
,param2
):key is any
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
• param2.ignoreCase?: boolean
= false
Returns
key is any
true if the object has the key, false otherwise