MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / hasValidKey

Function hasValidKey

code/controlled-uncontrolled/public/app.js:18001–18011  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

17999}
18000
18001function hasValidKey(config) {
18002 {
18003 if (hasOwnProperty.call(config, 'key')) {
18004 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18005 if (getter && getter.isReactWarning) {
18006 return false;
18007 }
18008 }
18009 }
18010 return config.key !== undefined;
18011}
18012
18013function defineKeyPropWarningGetter(props, displayName) {
18014 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected