isObjectKeyIn()
Last updated
Last updated
isObjectKeyIn()
Checks if value is an (by using the ) with a key of the PropertyKey
in it(or its prototype chain) by using the operator.
Obj
=
object
A generic type variable Obj
indicates the type of parameter via the value is Obj
, by default .
Payload
extends
object
=
object
The Payload
generic type variable constrained by indicates the type of optional parameter of the supplied function and optional parameter of the function from which it captures its value.
value: any
key: PropertyKey
callback: ResultCallback<any, { key: typeof key } & Payload>
payload?: Payload
value is Obj
The value of type to check against an that contains(or its prototype chain) a key from a given .
A property key to check if a given contains(or its prototype chain).
A callback function
of type with parameters, the that has been checked, the of this check, and of generic type variable with optional properties from the provided , to handle them before the return. By default, it uses function.
The parameter of the function consists of the property given in parameter of the core function, and it can't be overwritten by the given parameter of the core function.
An optional of the generic type variable is assigned to the of the given function.
The return type is a as the result of its statement indicating the is a generic type variable by default equal to the .
The return value is a indicating whether the provided is an that contains(or its prototype chain) a given .