MCPcopy Index your code
hub / github.com/ygs-code/vue / cached

Function cached

vue.js:231–237  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

229 * */
230
231 function cached(fn) {
232 var cache = Object.create(null);
233 return (function cachedFn(str) {
234 var hit = cache[str];
235 return hit || (cache[str] = fn(str))
236 })
237 }
238
239 /**
240 * Camelize a hyphen-delimited string.

Callers 1

vue.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected