MCPcopy Index your code
hub / github.com/developit/htm / regular

Function regular

src/index.mjs:19–27  ·  view source on GitHub ↗
(statics)

Source from the content-addressed store, hash-verified

17const CACHES = new Map();
18
19const regular = function(statics) {
20 let tmp = CACHES.get(this);
21 if (!tmp) {
22 tmp = new Map();
23 CACHES.set(this, tmp);
24 }
25 tmp = evaluate(this, tmp.get(statics) || (tmp.set(statics, tmp = build(statics)), tmp), arguments, []);
26 return tmp.length > 1 ? tmp : tmp[0];
27};
28
29export default MINI ? build : regular;

Callers

nothing calls this directly

Calls 2

evaluateFunction · 0.90
buildFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…