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

Function checkKeyStringCoercion

docs/index.js:645–668  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

643 return "" + value;
644 }
645 function checkKeyStringCoercion(value) {
646 try {
647 testStringCoercion(value);
648 var JSCompiler_inline_result = !1;
649 } catch (e) {
650 JSCompiler_inline_result = !0;
651 }
652 if (JSCompiler_inline_result) {
653 JSCompiler_inline_result = console;
654 var JSCompiler_temp_const = JSCompiler_inline_result.error;
655 var JSCompiler_inline_result$jscomp$0 =
656 ("function" === typeof Symbol &&
657 Symbol.toStringTag &&
658 value[Symbol.toStringTag]) ||
659 value.constructor.name ||
660 "Object";
661 JSCompiler_temp_const.call(
662 JSCompiler_inline_result,
663 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
664 JSCompiler_inline_result$jscomp$0
665 );
666 return testStringCoercion(value);
667 }
668 }
669 function getComponentNameFromType(type) {
670 if (null == type) return null;
671 if ("function" === typeof type)

Callers 4

getElementKeyFunction · 0.85
mapIntoArrayFunction · 0.85
index.jsFile · 0.85
jsxDEVImplFunction · 0.85

Calls 1

testStringCoercionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…