Function assertIsPropertyKey

  • Asserts that the given value is a PropertyKey ( string | number | symbol).

    Parameters

    • value: unknown
    • OptionalfailureMessage: string

    Returns asserts value is PropertyKey