MCPcopy Create free account
hub / github.com/idank/explainshell / d3_time_formatLookup

Function d3_time_formatLookup

explainshell/web/static/js/d3.v3.js:8032–8036  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

8030 return new RegExp("^(?:" + names.map(d3.requote).join("|") + ")", "i");
8031 }
8032 function d3_time_formatLookup(names) {
8033 var map = new d3_Map(), i = -1, n = names.length;
8034 while (++i < n) map.set(names[i].toLowerCase(), i);
8035 return map;
8036 }
8037 function d3_time_formatPad(value, fill, width) {
8038 value += "";
8039 var length = value.length;

Callers 1

d3.v3.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected