UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

13 lines (11 loc) 396 B
import { assert } from "../../assert.js"; import { computeIntegerArrayHash } from "./computeIntegerArrayHash.js"; /** * Computes hash on integer values, useful for building composite hashes * @param {...number} value * @returns {number} */ export function combine_hash(...value) { assert.isArray(value, 'value'); return computeIntegerArrayHash(value, 0, value.length); }