(value)
| 23180 | } |
| 23181 | |
| 23182 | function objectValue(value) { |
| 23183 | // If `valueOf` is a valid function use that |
| 23184 | if (isFunction(value.valueOf)) { |
| 23185 | value = value.valueOf(); |
| 23186 | if (isPrimitive(value)) return value; |
| 23187 | } |
| 23188 | // If `toString` is a valid function and not the one from `Object.prototype` use that |
| 23189 | if (hasCustomToString(value)) { |
| 23190 | value = value.toString(); |
| 23191 | if (isPrimitive(value)) return value; |
| 23192 | } |
| 23193 | |
| 23194 | return value; |
| 23195 | } |
| 23196 | |
| 23197 | function getPredicateValue(value, index) { |
| 23198 | var type = typeof value; |
no test coverage detected