Function isKeyOf

  • Determines if a value is a key of an object.

    Type Parameters

    • 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

Generated using TypeDoc