Skip to main content
Module

x/rimbu/mod.ts>Hasher.booleanHasher

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

Returns a Hasher instance that hashes booleans.

Examples

Example 1

const h = Hasher.booleanHasher()
console.log(h.hash(true) === h.hash(false))
// => false

Returns

Hasher<boolean>