Function isPrimitiveOrSymbol

  • For detecting if the value can be used as a key.

    Returns

    Parameters

    • value: unknown

    Returns value is symbol | NullablePrimitive

  • For detecting if the value can be used as a key.

    Returns

    Parameters

    • value: unknown
    • allowUndefined: false

    Returns value is symbol | NullablePrimitive

  • For detecting if the value can be used as a key.

    Returns

    Parameters

    • value: unknown
    • allowUndefined: boolean

    Returns value is undefined | symbol | NullablePrimitive

Generated using TypeDoc