UNPKG
imma
Version:
latest (0.0.1)
0.0.1
A collection of functions for dealing with native arrays and objects immutably
imma
/
lib
/
array
/
findLast.js
8 lines
(6 loc)
•
192 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
const
findLastEntry =
require
(
'./findEntry'
)
const
findLast =
module
.
exports
=
(
object
, fn
) =>
{
const
result =
findLastEntry
(
object
, fn)
return
result && result[
1
] }