Skip to content

@opencraft/providence


Function: memoizer()

memoizer\<Func>(sourceFunc): (...args) => ReturnType\<Func>

Defined in: lib/index.ts:287

Wraps a function for memoization. The resulting function will return the same result if given the same arguments.

Type Parameters

Func

Func extends (...args) => any

Parameters

sourceFunc

Func

Returns

(...args) => ReturnType\<Func>