MCPcopy Index your code
hub / github.com/cure53/DOMPurify / hasFlag

Function hasFlag

scripts/benchmark.js:31–31  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

29
30const argv = process.argv.slice(2);
31const hasFlag = (f) => argv.includes(f);
32const flagValue = (f, dflt) => {
33 const i = argv.indexOf(f);
34 return i !== -1 && argv[i + 1] !== undefined ? argv[i + 1] : dflt;

Callers 1

benchmark.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…