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

Function hasValidKey

code/third-party/public/app.js:17910–17920  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

17908}
17909
17910function hasValidKey(config) {
17911 {
17912 if (hasOwnProperty.call(config, 'key')) {
17913 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
17914 if (getter && getter.isReactWarning) {
17915 return false;
17916 }
17917 }
17918 }
17919 return config.key !== undefined;
17920}
17921
17922function defineKeyPropWarningGetter(props, displayName) {
17923 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected