* Gets the appropriate "indexOf" function. If the `_.indexOf` method is * customized this function returns the custom method, otherwise it returns * the `baseIndexOf` function. If arguments are provided the chosen function * is invoked with them and its result is returned. *
(collection, target, fromIndex)
| 5461 | * @returns {Function|number} Returns the chosen function or its result. |
| 5462 | */ |
| 5463 | function getIndexOf(collection, target, fromIndex) { |
| 5464 | var result = lodash.indexOf || indexOf; |
| 5465 | result = result === indexOf ? baseIndexOf : result; |
| 5466 | return collection ? result(collection, target, fromIndex) : result; |
| 5467 | } |
| 5468 | |
| 5469 | /** |
| 5470 | * Gets the "length" property value of `object`. |
no test coverage detected