(value)
| 22736 | } |
| 22737 | |
| 22738 | function objectValue(value) { |
| 22739 | // If `valueOf` is a valid function use that |
| 22740 | if (isFunction(value.valueOf)) { |
| 22741 | value = value.valueOf(); |
| 22742 | if (isPrimitive(value)) return value; |
| 22743 | } |
| 22744 | // If `toString` is a valid function and not the one from `Object.prototype` use that |
| 22745 | if (hasCustomToString(value)) { |
| 22746 | value = value.toString(); |
| 22747 | if (isPrimitive(value)) return value; |
| 22748 | } |
| 22749 | |
| 22750 | return value; |
| 22751 | } |
| 22752 | |
| 22753 | function getPredicateValue(value, index) { |
| 22754 | var type = typeof value; |
no test coverage detected