(value)
| 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) { |
no test coverage detected
searching dependent graphs…