@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
9 lines • 391 B
TypeScript
/**
* Adds an element to the end of the array, iff the element is not present in the array already
* @template T
* @param {T[]} array where
* @param {T} element what to add
* @return {boolean} true iff added, false if the array already contains this element
*/
export function array_push_if_unique<T>(array: T[], element: T): boolean;
//# sourceMappingURL=array_push_if_unique.d.ts.map