MCPcopy Index your code
hub / github.com/dataease/SQLBot / memoized

Function memoized

frontend/public/swagger-ui-bundle.js:22969–22976  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22967 if ('function' != typeof s || (null != o && 'function' != typeof o))
22968 throw new TypeError('Expected a function')
22969 var memoized = function () {
22970 var i = arguments,
22971 a = o ? o.apply(this, i) : i[0],
22972 u = memoized.cache
22973 if (u.has(a)) return u.get(a)
22974 var _ = s.apply(this, i)
22975 return ((memoized.cache = u.set(a, _) || u), _)
22976 }
22977 return ((memoized.cache = new (memoize.Cache || a)()), memoized)
22978 }
22979 ;((memoize.Cache = a), (s.exports = memoize))

Callers

nothing calls this directly

Calls 5

derefMethod · 0.80
aFunction · 0.70
getMethod · 0.65
hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected