Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/common/eq.ts>Eq.stringCaseInsentitiveEq

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Eq.stringCaseInsentitiveEq
import { Eq } from "https://deno.land/x/rimbu@0.13.0/common/eq.ts";
const { stringCaseInsentitiveEq } = Eq;

Returns an Eq instance that considers strings equal regardless of their case.

Examples

Example 1

const eq = Eq.stringCaseInsentitiveEq()
console.log(eq('aB', 'Ab'))
// => true
console.log(eq('aBc', 'abB'))
// => false

Returns

Eq<string>