MCPcopy
hub / github.com/rendrjs/rendr / startsWith

Function startsWith

shared/store/model_store.js:99–101  ·  view source on GitHub ↗
(string, prefix)

Source from the content-addressed store, hash-verified

97}
98
99function startsWith(string, prefix) {
100 return string.slice(0, prefix.length) == prefix;
101}
102
103function isObjectSubset(potentialSubset, objectToTest) {
104 // check all the keys of the subset, and sure their values are the same in the objectToTest

Callers 2

model_store.jsFile · 0.70
getStartsWithFilterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected