(s)
| 40999 | }) |
| 41000 | return a |
| 41001 | } |
| 41002 | function jsonPointerToArray(s) { |
| 41003 | if ('string' != typeof s) throw new TypeError('Expected a string, got a ' + typeof s) |
| 41004 | return ( |
| 41005 | '/' === s[0] && (s = s.substr(1)), |
| 41006 | '' === s ? [] : s.split('/').map(unescapeJsonPointerToken) |
| 41007 | ) |
| 41008 | } |
| 41009 | function unescapeJsonPointerToken(s) { |
| 41010 | if ('string' != typeof s) return s |
no test coverage detected