xdash API Reference / hasKey
Function: hasKey()
hasKey<
T
>(obj
,key
):boolean
Defined in: src/object.ts:168
Determines if an object has a key.
Type Parameters
T
T
Parameters
obj
Record
<string
, T
>
object to check
key
string
key to check
Returns
boolean
true if the object has the key, false otherwise