Skip to main content
Module

x/rimbu/mod.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.14.0/mod.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>