Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
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
30
const
argv = process.argv.slice(2);
31
const
hasFlag = (f) => argv.includes(f);
32
const
flagValue = (f, dflt) => {
33
const
i = argv.indexOf(f);
34
return
i !== -1 && argv[i + 1] !== undefined ? argv[i + 1] : dflt;
Callers
1
benchmark.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected