MCPcopy Index your code
hub / github.com/TruthHun/BookStack / cached

Function cached

static/vuejs/vue.runtime.esm.js:81–87  ·  view source on GitHub ↗

* Create a cached version of a pure function.

(fn)

Source from the content-addressed store, hash-verified

79 * Create a cached version of a pure function.
80 */
81function cached (fn) {
82 var cache = Object.create(null);
83 return (function cachedFn (str) {
84 var hit = cache[str];
85 return hit || (cache[str] = fn(str))
86 })
87}
88
89/**
90 * Camelize a hyphen-delimited string.

Callers 1

vue.runtime.esm.jsFile · 0.70

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected