MCPcopy Index your code
hub / github.com/dataease/SQLBot / jsonPointerToArray

Function jsonPointerToArray

frontend/public/swagger-ui-bundle.js:41001–41007  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

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

Callers 2

extractFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected