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

Function istrue

Rewrite-Parser.beta.js:2751–2757  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2749} //获取Mock参数
2750
2751function istrue(str) {
2752 if (str == true || str == 1 || str == 'true' || str == '1') {
2753 return true
2754 } else {
2755 return false
2756 }
2757}
2758
2759function isJsCon(x, arr) {
2760 if (arr != null) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected