MCPcopy Index your code
hub / github.com/plotly/dash / keyPrefixMatch

Function keyPrefixMatch

dash/dash-renderer/src/persistence.js:91–95  ·  view source on GitHub ↗
(prefix, separator)

Source from the content-addressed store, hash-verified

89 * followed by the separator (then anything else)
90 */
91function keyPrefixMatch(prefix, separator) {
92 const fullStr = prefix + separator;
93 const fullLen = fullStr.length;
94 return key => key === prefix || key.substr(0, fullLen) === fullStr;
95}
96
97const UNDEFINED = 'U';
98const _parse = val => (val === UNDEFINED ? undefined : JSON.parse(val || null));

Callers 2

clearMethod · 0.85
clearMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…