findRight is actually findLast
Not sure if this was renamed at some point but there's no "findRight" in lodash, just findLast. https://lodash.com/docs/4.17.15#findLast
This commit is contained in:
parent
cb4e03077f
commit
abf62e4868
|
@ -15,7 +15,7 @@ description: |
|
||||||
```js
|
```js
|
||||||
_.filter(list, (n) => n % 2) // → Array
|
_.filter(list, (n) => n % 2) // → Array
|
||||||
_.find(list, (n) => n % 2) // → item
|
_.find(list, (n) => n % 2) // → item
|
||||||
_.findRight(list, ...) // → item
|
_.findLast(list, ...) // → item
|
||||||
```
|
```
|
||||||
|
|
||||||
Works for both arrays and objects.
|
Works for both arrays and objects.
|
||||||
|
|
Loading…
Reference in New Issue