(val)
| 11 | this.falseList = ["false"]; |
| 12 | } |
| 13 | parse(val){ |
| 14 | if (typeof val === 'string') { |
| 15 | //TODO: performance: don't convert |
| 16 | const temp = val.toLowerCase(); |
| 17 | if(this.trueList.indexOf(temp) !== -1) return true; |
| 18 | else if(this.falseList.indexOf(temp) !== -1 ) return false; |
| 19 | } |
| 20 | return val; |
| 21 | } |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected