* Tries to read an integer value out of a string, if it fails to match the * entire string, returns the original string instead
(str)
| 98 | * entire string, returns the original string instead |
| 99 | */ |
| 100 | function tryParseInt(str) { |
| 101 | var num = parseInt(str); |
| 102 | if (num == str) { |
| 103 | return num; |
| 104 | } |
| 105 | |
| 106 | return str; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Parses a string key of the form "foo.bar[a=1, b=2].baz[alpha = beta].delta" |
no outgoing calls
no test coverage detected
searching dependent graphs…