MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / getArgumentDefaultValue

Function getArgumentDefaultValue

Rewrite-Parser.beta.js:2186–2189  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

2184}
2185
2186function getArgumentDefaultValue(item) {
2187 const value = `${item?.value ?? ''}`.trim()
2188 return stripWrapQuote(splitTopLevel(value, ',')[0] || value).trim()
2189}
2190
2191function collectUsedArgumentKeys(jsBox, hnBox = []) {
2192 const keys = new Set()

Callers 1

filterLoonArgumentsFunction · 0.85

Calls 2

stripWrapQuoteFunction · 0.85
splitTopLevelFunction · 0.85

Tested by

no test coverage detected