Module: sources/cores/symbols/isSymbol

Export function to validate if a value is a symbol
Author:
License:
Source:

Example

import { isSymbol } from 'itee-validators'

if( isSymbol( value ) ) {
    //...
} else {
    //...
}

Methods


<static> isNotSymbol(data)

Check if given data is not a symbol
Parameters:
Name Type Description
data * The data to check against the symbol type
Source:
Returns:
true if data is not a symbol, false otherwise.
Type
boolean

<static> isSymbol(data)

Check if given data is a symbol
Parameters:
Name Type Description
data * The data to check against the symbol type
Source:
Returns:
true if data is a symbol, false otherwise.
Type
boolean