Date

“Lang” Methods

_.isSymbol(value)

source npm package

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

引入版本

4.0.0

参数
value (*) : The value to check.

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

示例
_.isSymbol(Symbol.iterator);
// => true
 
_.isSymbol('abc');
// => false