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

Function defineDeprecationWarning

docs/index.js:596–606  ·  view source on GitHub ↗
(methodName, info)

Source from the content-addressed store, hash-verified

594"production" !== 'development' &&
595 (function () {
596 function defineDeprecationWarning(methodName, info) {
597 Object.defineProperty(Component.prototype, methodName, {
598 get: function () {
599 console.warn(
600 "%s(...) is deprecated in plain JavaScript React classes. %s",
601 info[0],
602 info[1]
603 );
604 }
605 });
606 }
607 function getIteratorFn(maybeIterable) {
608 if (null === maybeIterable || "object" !== typeof maybeIterable)
609 return null;

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…