Sha256: f96507ecb20c55d237c9d4376c048b15793b1362fa9fb00dd4997c0489b93a02

Contents?: true

Size: 681 Bytes

Versions: 48

Compression:

Stored size: 681 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.default = unmemoize;
/**
 * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original,
 * unmemoized form. Handy for testing.
 *
 * @name unmemoize
 * @static
 * @memberOf module:Utils
 * @method
 * @see [async.memoize]{@link module:Utils.memoize}
 * @category Util
 * @param {AsyncFunction} fn - the memoized function
 * @returns {AsyncFunction} a function that calls the original unmemoized function
 */
function unmemoize(fn) {
    return function () {
        return (fn.unmemoized || fn).apply(null, arguments);
    };
}
module.exports = exports["default"];

Version data entries

48 entries across 46 versions & 11 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/async/unmemoize.js
disco_app-0.18.0 test/dummy/node_modules/async/unmemoize.js
disco_app-0.18.2 test/dummy/node_modules/async/unmemoize.js
disco_app-0.16.1 test/dummy/node_modules/async/unmemoize.js
disco_app-0.15.2 test/dummy/node_modules/async/unmemoize.js
disco_app-0.18.4 test/dummy/node_modules/async/unmemoize.js
disco_app-0.18.1 test/dummy/node_modules/async/unmemoize.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/async/unmemoize.js
disco_app-0.14.0 test/dummy/node_modules/async/unmemoize.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/async/unmemoize.js
tang-0.2.1 spec/tang_app/node_modules/async/unmemoize.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/async/unmemoize.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/async/unmemoize.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/async/unmemoize.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/async/unmemoize.js
tang-0.2.0 spec/tang_app/node_modules/async/unmemoize.js
tang-0.1.0 spec/tang_app/node_modules/async/unmemoize.js
tang-0.0.9 spec/tang_app/node_modules/async/unmemoize.js
enju_library-0.3.8 spec/dummy/node_modules/async/unmemoize.js
ilog-0.4.1 node_modules/async/unmemoize.js