_.isSymbol

_.isSymbol(value)

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

Since

4.0.0

Arguments

  1. value (*): The value to check.

Returns

(boolean): Returns true if value is a symbol, else false.

Example

_.isSymbol(Symbol.iterator);
// => true
 
_.isSymbol('abc');
// => false
doc_Lodash
2016-11-27 16:38:31
Comments
Leave a Comment

Please login to continue.