MCPcopy Index your code
hub / github.com/microsoft/SandDance / hasValidKey

Function hasValidKey

docs/external/js/react.development.js:670–682  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

668 }
669
670 function hasValidKey(config) {
671 {
672 if (hasOwnProperty$1.call(config, 'key')) {
673 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
674
675 if (getter && getter.isReactWarning) {
676 return false;
677 }
678 }
679 }
680
681 return config.key !== undefined;
682 }
683
684 function defineKeyPropWarningGetter(props, displayName) {
685 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.85
cloneElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected