MCPcopy Index your code
hub / github.com/caseywebdev/react-list / escape

Function escape

docs/index.js:146–154  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

144 );
145}
146function escape(key) {
147 var escaperLookup = { "=": "=0", ":": "=2" };
148 return (
149 "$" +
150 key.replace(/[=:]/g, function (match) {
151 return escaperLookup[match];
152 })
153 );
154}
155var userProvidedKeyEscapeRegex = /\/+/g;
156function getElementKey(element, index) {
157 return "object" === typeof element && null !== element && null != element.key

Callers 1

getElementKeyFunction · 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…