MCPcopy
hub / github.com/NaturalIntelligence/fast-xml-parser / parse

Function parse

src/v6/valueParsers/booleanParserExt.js:12–19  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

10}
11
12function parse(val){
13 if (typeof val === 'string') {
14 const temp = val.toLowerCase();
15 if(temp === 'true' || temp ==="yes" || temp==="1") return true;
16 else if(temp === 'false' || temp ==="no" || temp==="0") return false;
17 }
18 return val;
19}

Callers 1

boolParserExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…