Sha256: 2a44d48a9ad30b393365ce3c3670ece83dd753d264bd5488149ac812540606f8
Contents?: true
Size: 563 Bytes
Versions: 271
Compression:
Stored size: 563 Bytes
Contents
/** * Memoize a function. * @method memoize * @memberof axe.utils * @param {Function} fn Function to memoize * @return {Function} */ axe._memoizedFns = []; axe.utils.memoize = function(fn) { // keep track of each function that is memoized so it can be cleared at // the end of a run. each memoized function has its own cache, so there is // no method to clear all memoized caches. instead, we have to clear each // individual memoized function ourselves. const memoized = axe.imports.memoize(fn); axe._memoizedFns.push(memoized); return memoized; };
Version data entries
271 entries across 271 versions & 1 rubygems