Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/powerset/powerset.js
Normal file
2
test/powerset/powerset.js
Normal file
@ -0,0 +1,2 @@
|
||||
const powerset = arr => arr.reduce((a, v) => a.concat(a.map(r => [v].concat(r))), [[]]);
|
||||
module.exports = powerset;
|
||||
Reference in New Issue
Block a user