(val, shouldParse, options)
| 864 | } |
| 865 | |
| 866 | function parseValue(val, shouldParse, options) { |
| 867 | if (shouldParse && typeof val === 'string') { |
| 868 | //console.log(options) |
| 869 | const newval = val.trim(); |
| 870 | if (newval === 'true') return true; |
| 871 | else if (newval === 'false') return false; |
| 872 | else return toNumber(val, options); |
| 873 | } else { |
| 874 | if (isExist(val)) { |
| 875 | return val; |
| 876 | } else { |
| 877 | return ''; |
| 878 | } |
| 879 | } |
| 880 | } |
| 881 | |
| 882 | function fromCodePoint(str, base, prefix) { |
| 883 | const codePoint = Number.parseInt(str, base); |
no test coverage detected