import * as tsplus_module_1 from "@tsplus/stdlib/structure/Hash";

function hash(k) {
  const h = tsplus_module_1.hashUnknown(k);
  return h ^ h >>> 16;
}
/**
 * @internal
 * @tsplus static ets/TMap/Ops indexOf
 */


export function indexOf(k, capacity) {
  return hash(k) & capacity - 1;
}
//# sourceMappingURL=indexOf.mjs.map