Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
5
test2/findLastKey/findLastKey.js
Normal file
5
test2/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