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

Function getToggleSwitchDefault

Rewrite-Parser.beta.js:2105–2110  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2103}
2104
2105function getToggleSwitchDefault(value) {
2106 value = stripWrapQuote(`${value ?? ''}`.trim())
2107 .split(',')[0]
2108 .trim()
2109 return /^(false|0|off|no|#)?$/i.test(value) ? 'false' : 'true'
2110}
2111
2112function getSurgeArgumentDefault(item, isRuleToggle = false) {
2113 const value = `${item.value ?? ''}`.trim()

Callers 1

formatLoonArgumentValueFunction · 0.85

Calls 1

stripWrapQuoteFunction · 0.85

Tested by

no test coverage detected