(val, shouldParse, options)
| 800 | } |
| 801 | |
| 802 | function parseValue(val, shouldParse, options) { |
| 803 | if (shouldParse && typeof val === 'string') { |
| 804 | //console.log(options) |
| 805 | const newval = val.trim(); |
| 806 | if (newval === 'true') return true; |
| 807 | else if (newval === 'false') return false; |
| 808 | else return toNumber(val, options); |
| 809 | } else { |
| 810 | if (isExist(val)) { |
| 811 | return val; |
| 812 | } else { |
| 813 | return ''; |
| 814 | } |
| 815 | } |
| 816 | } |
| 817 | |
| 818 | function fromCodePoint(str, base, prefix) { |
| 819 | const codePoint = Number.parseInt(str, base); |
no test coverage detected