MCPcopy Create free account
hub / github.com/breck7/scroll / formatRe

Function formatRe

external/.d3.js:16387–16389  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

16385}
16386
16387function formatRe(names) {
16388 return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
16389}
16390
16391function formatLookup(names) {
16392 return new Map(names.map((name, i) => [name.toLowerCase(), i]));

Callers 1

formatLocaleFunction · 0.85

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected