isSymbol

Lang
since 4.0.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is a symbol, else `false`.

Checks if value is classified as a Symbol primitive or object.

Example of Lodash _.isSymbol

_.isSymbol(Symbol.iterator);
// => true

_.isSymbol('abc');
// => false