(val, shouldParse, options)
| 822 | } |
| 823 | |
| 824 | function parseValue(val, shouldParse, options) { |
| 825 | if (shouldParse && typeof val === 'string') { |
| 826 | //console.log(options) |
| 827 | const newval = val.trim(); |
| 828 | if (newval === 'true') return true; |
| 829 | else if (newval === 'false') return false; |
| 830 | else return toNumber(val, options); |
| 831 | } else { |
| 832 | if (isExist(val)) { |
| 833 | return val; |
| 834 | } else { |
| 835 | return ''; |
| 836 | } |
| 837 | } |
| 838 | } |
| 839 | |
| 840 | function fromCodePoint(str, base, prefix) { |
| 841 | const codePoint = Number.parseInt(str, base); |
no test coverage detected