Travis build: 1358 [cron]
This commit is contained in:
5
test/findLastKey/findLastKey.js
Normal file
5
test/findLastKey/findLastKey.js
Normal file
@ -0,0 +1,5 @@
|
||||
const findLastKey = (obj, fn) =>
|
||||
Object.keys(obj)
|
||||
.reverse()
|
||||
.find(key => fn(obj[key], key, obj));
|
||||
module.exports = findLastKey
|
||||
Reference in New Issue
Block a user