UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

10 lines 535 B
/** * @template T,K * @param {T[]} array * @param {function(T):K} grouping_key_producer given an element from input array, returns a grouping key. Can be an object, if it implements .equals method keys can be compared that way as well * @param keyHashFunction * @returns {Map<K,T[]>} */ export function array_group_by<T, K>(array: T[], grouping_key_producer: (arg0: T) => K, keyHashFunction?: typeof returnZero): Map<K, T[]>; import { returnZero } from "../../function/returnZero.js"; //# sourceMappingURL=array_group_by.d.ts.map