Skip to content

@longmo-utils/common / isSymbol

Function: isSymbol()

ts
function isSymbol(arg): boolean;

是否是符号

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isSymbol(Symbol(1)) // true

Released under the MIT License.