Symbol overview
Added in v2.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 { Predicate } from "effect"
assert.deepStrictEqual(Predicate.isSymbol(Symbol.for("a")), true)
assert.deepStrictEqual(Predicate.isSymbol("a"), false)
Added in v2.0.0
instances
Equivalence
Signature
export declare const Equivalence: equivalence.Equivalence<symbol>
Added in v2.0.0