UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

16 lines 441 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.memoize1 = memoize1; function memoize1(fn) { let cache0; return function memoized(a1) { cache0 ??= new WeakMap(); let fnResult = cache0.get(a1); if (fnResult === undefined) { fnResult = fn(a1); cache0.set(a1, fnResult); } return fnResult; }; } //# sourceMappingURL=memoize1.js.map