Options
All
  • Public
  • Public/Protected
  • All
Menu

Module isSymbol

Index

References

Functions Lang

References

Renames and re-exports isSymbol

Lang Functions

  • isSymbol(value: any): value is Symbol
  • Checks if value is classified as a Symbol primitive or object.

    since

    5.5.0

    example
    isSymbol(Symbol.iterator)
    // => true

    isSymbol('abc')
    // => false

    Parameters

    • value: any

      The value to check.

    Returns value is Symbol

    Returns true if value is a symbol, else false.