mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Update doc examples to ES2015.
This commit is contained in:
@@ -13,9 +13,7 @@ import findLastIndex from './findLastIndex.js';
|
||||
* @returns {*} Returns the matched element, else `undefined`.
|
||||
* @example
|
||||
*
|
||||
* findLast([1, 2, 3, 4], function(n) {
|
||||
* return n % 2 == 1;
|
||||
* });
|
||||
* findLast([1, 2, 3, 4], n => n % 2 == 1);
|
||||
* // => 3
|
||||
*/
|
||||
const findLast = createFind(findLastIndex);
|
||||
|
||||
Reference in New Issue
Block a user