MCPcopy Create free account
hub / github.com/caseywebdev/react-list / describePropValue

Function describePropValue

docs/index.js:20632–20640  ·  view source on GitHub ↗
(value, maxLength)

Source from the content-addressed store, hash-verified

20630 }
20631 }
20632 function describePropValue(value, maxLength) {
20633 return "string" !== typeof value || needsEscaping.test(value)
20634 ? "{" + describeValue(value, maxLength - 2) + "}"
20635 : value.length > maxLength - 2
20636 ? 5 > maxLength
20637 ? '"..."'
20638 : '"' + value.slice(0, maxLength - 5) + '..."'
20639 : '"' + value + '"';
20640 }
20641 function describeExpandedElement(type, props, rowPrefix) {
20642 var remainingRowLength = 120 - rowPrefix.length - type.length,
20643 properties = [],

Callers 3

describeExpandedElementFunction · 0.85
describeElementDiffFunction · 0.85
describeNodeFunction · 0.85

Calls 1

describeValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…