(value)
| 23966 | } |
| 23967 | |
| 23968 | function objectValue(value) { |
| 23969 | // If `valueOf` is a valid function use that |
| 23970 | if (isFunction(value.valueOf)) { |
| 23971 | value = value.valueOf(); |
| 23972 | if (isPrimitive(value)) return value; |
| 23973 | } |
| 23974 | // If `toString` is a valid function and not the one from `Object.prototype` use that |
| 23975 | if (hasCustomToString(value)) { |
| 23976 | value = value.toString(); |
| 23977 | if (isPrimitive(value)) return value; |
| 23978 | } |
| 23979 | |
| 23980 | return value; |
| 23981 | } |
| 23982 | |
| 23983 | function getPredicateValue(value, index) { |
| 23984 | var type = typeof value; |
no test coverage detected