* Convert a input value to a number for persistence. * If the conversion fails, return original string.
(val)
| 23 | * If the conversion fails, return original string. |
| 24 | */ |
| 25 | function toNumber (val) { |
| 26 | var n = parseFloat(val); |
| 27 | return isNaN(n) ? val : n |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Make a map and return a function for checking if a key |
no outgoing calls
no test coverage detected