Skip to main content Link Search Menu Expand Document (external link)

Symbol overview

Added in v1.0.0


Table of contents


guards

isSymbol

Tests if a value is a symbol.

Signature

export declare const isSymbol: (u: unknown) => u is symbol

Example

import { isSymbol } from '@fp-ts/core/Predicate'

assert.deepStrictEqual(isSymbol(Symbol.for('a')), true)
assert.deepStrictEqual(isSymbol('a'), false)

Added in v1.0.0

instances

Equivalence

Signature

export declare const Equivalence: equivalence.Equivalence<symbol>

Added in v1.0.0