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

Function getElementKey

docs/index.js:156–160  ·  view source on GitHub ↗
(element, index)

Source from the content-addressed store, hash-verified

154}
155var userProvidedKeyEscapeRegex = /\/+/g;
156function getElementKey(element, index) {
157 return "object" === typeof element && null !== element && null != element.key
158 ? escape("" + element.key)
159 : index.toString(36);
160}
161function noop$1() {}
162function resolveThenable(thenable) {
163 switch (thenable.status) {

Callers 1

mapIntoArrayFunction · 0.85

Calls 2

escapeFunction · 0.85
checkKeyStringCoercionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…