(str)
| 62 | exports._deepClone = _deepClone; |
| 63 | //3x faster than cached /^\d+$/.test(str) |
| 64 | function isInteger(str) { |
| 65 | var i = 0; |
| 66 | var len = str.length; |
| 67 | var charCode; |
| 68 | while (i < len) { |
| 69 | charCode = str.charCodeAt(i); |
| 70 | if (charCode >= 48 && charCode <= 57) { |
| 71 | i++; |
| 72 | continue; |
| 73 | } |
| 74 | return false; |
| 75 | } |
| 76 | return true; |
| 77 | } |
| 78 | exports.isInteger = isInteger; |
| 79 | /** |
| 80 | * Escapes a json pointer path |
nothing calls this directly
no outgoing calls
no test coverage detected