Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
5
test/forOwnRight/forOwnRight.js
Normal file
5
test/forOwnRight/forOwnRight.js
Normal file
@ -0,0 +1,5 @@
|
||||
const forOwnRight = (obj, fn) =>
|
||||
Object.keys(obj)
|
||||
.reverse()
|
||||
.forEach(key => fn(obj[key], key, obj));
|
||||
module.exports = forOwnRight;
|
||||
Reference in New Issue
Block a user