effect-io-ai

Package: effect
Module: Equivalence

Equivalence.String

Equivalence instance for strings using strict equality (===).

When to use

Use when you need to supply case-sensitive string equality.

Example (Comparing strings)

import { Equivalence } from "effect"

console.log(Equivalence.String("hello", "hello")) // true
console.log(Equivalence.String("hello", "world")) // false

Signature

declare const String: Equivalence<string>

Source

Since v4.0.0