MCPcopy Create free account
hub / github.com/plotly/dash / getPostfixForTypeWarning

Function getPostfixForTypeWarning

dash/deps/prop-types@15.8.1.js:755–768  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

753 // Returns a string that is postfixed to a warning about an invalid type.
754 // For example, "undefined" or "of type array"
755 function getPostfixForTypeWarning(value) {
756 var type = getPreciseType(value);
757 switch (type) {
758 case 'array':
759 case 'object':
760 return 'an ' + type;
761 case 'boolean':
762 case 'date':
763 case 'regexp':
764 return 'a ' + type;
765 default:
766 return type;
767 }
768 }
769
770 // Returns class name of the object, if any.
771 function getClassName(propValue) {

Callers 1

createUnionTypeCheckerFunction · 0.85

Calls 1

getPreciseTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…