Function hasKey

  • Checks if the object object has the key key.

    Type Parameters

    • T extends Record<string, any>

    • K extends string

    Parameters

    • object: T
    • key: K

    Returns object is T & { [ key in string]: any }

Generated using TypeDoc