Bump to v4.13.1.

This commit is contained in:
John-David Dalton
2016-05-23 12:31:09 -07:00
parent 35cdf6513b
commit 6b3e0da93c
7 changed files with 39 additions and 19 deletions

View File

@@ -1,6 +1,5 @@
import createFind from './_createFind.js';
import findLastIndex from './findLastIndex.js';
import isArrayLike from './isArrayLike.js';
import values from './values.js';
/**
* This method is like `_.find` except that it iterates over elements of
@@ -22,10 +21,6 @@ import values from './values.js';
* });
* // => 3
*/
function findLast(collection, predicate, fromIndex) {
collection = isArrayLike(collection) ? collection : values(collection);
var index = findLastIndex(collection, predicate, fromIndex);
return index > -1 ? collection[index] : undefined;
}
var findLast = createFind(findLastIndex);
export default findLast;