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