UNPKG

murmur-32

Version:

MurmurHash3 x86 32-bit implemented in JavaScript.

5 lines (4 loc) 258 B
/** * Compute the 32-bit MurmurHash3 of the supplied `key`. If the `key` is given as a string it will be [encoded using the UTF8 encoding](https://github.com/LinusU/encode-utf8). */ export default function murmur32 (key: ArrayBuffer | string): ArrayBuffer