Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Script-Hub-Org/Script-Hub
/ istrue
Function
istrue
script-converter.js:568–574 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
566
}
567
// 是否为真 与其他脚本逻辑一致
568
function
istrue(str) {
569
if
(str == true || str == 1 || str ==
'true'
|| str ==
'1'
) {
570
return
true
571
}
else
{
572
return
false
573
}
574
}
575
function
redirect(url) {
576
return
{
577
body:
''
,
Callers
1
script-converter.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected