Function isSymbol

  • Checks if the given value is an symbol.

    Parameters

    • val: unknown

      The value to be checked.

    Returns val is symbol

    Returns true if the value is an object, otherwise false.