UNPKG

@scaleway/use-analytics

Version:

A small hook to handle events analytics

5 lines (4 loc) 225 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const stringToHash = (str) => [...str].reduce((s, c) => Math.imul(31, s) + c.charCodeAt(0) || 0, 0); exports.stringToHash = stringToHash;