typechecker icon indicating copy to clipboard operation
typechecker copied to clipboard

add isSymbol

Open dkebler opened this issue 3 years ago • 0 comments

function isSymbol (x) {
    return typeof x === 'symbol'
        || typeof x === 'object' && Object.prototype.toString.call (x) === '[object Symbol]';
}

dkebler avatar May 07 '21 21:05 dkebler