(value)
| 23063 | } |
| 23064 | |
| 23065 | function objectValue(value) { |
| 23066 | // If `valueOf` is a valid function use that |
| 23067 | if (isFunction(value.valueOf)) { |
| 23068 | value = value.valueOf(); |
| 23069 | if (isPrimitive(value)) return value; |
| 23070 | } |
| 23071 | // If `toString` is a valid function and not the one from `Object.prototype` use that |
| 23072 | if (hasCustomToString(value)) { |
| 23073 | value = value.toString(); |
| 23074 | if (isPrimitive(value)) return value; |
| 23075 | } |
| 23076 | |
| 23077 | return value; |
| 23078 | } |
| 23079 | |
| 23080 | function getPredicateValue(value, index) { |
| 23081 | var type = typeof value; |
no test coverage detected