MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / lastSlash

Function lastSlash

lib/acl-checker.mjs:340–342  ·  view source on GitHub ↗
(string, pos = string.length)

Source from the content-addressed store, hash-verified

338
339// Returns the index of the last slash before the given position
340function lastSlash (string, pos = string.length) {
341 return string.lastIndexOf('/', pos)
342}
343
344export default ACLChecker
345

Callers 1

getPossibleACLsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected