• Checks if a value is of type symbol

    Example

    const result = isSymbol(Symbol());
    console.log(result); // true

    Example

    const result = isSymbol(0);
    console.log(result); // false

    Returns

    true if value is symbol, otherwise false

    Parameters

    • value: unknown

      the value to check

    Returns value is symbol

Generated using TypeDoc