Skip to content

xdash API Reference v0.5.14


xdash API Reference / isKeyOf

Function: isKeyOf()

isKeyOf<T>(value, obj): value is keyof T

Defined in: src/typed.ts:143

Determines if a value is a key of an object.

Type Parameters

T

T extends object

Parameters

value

unknown

value to check

obj

T

object to check if the value is a key of

Returns

value is keyof T

true if the value is a key of the object, false otherwise

Released under the MIT License.