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

x/rimbu/core/main/index.ts>Hasher.anyToStringHasher

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

Returns a Hasher instance that hashes the string representation of any value

Examples

Example 1

const h = Hasher.anyToStringHasher()
h.hash([1, 3, 'a'])

Parameters

optional
maxStepBits: number
  • the maximum amount of samples to take from the string