ran npm run tdd & generated TDD
This commit is contained in:
1
test/maxN/maxN.js
Normal file
1
test/maxN/maxN.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = (arr, n = 1) => [...arr].sort((a, b) => b - a).slice(0, n);
|
||||
Reference in New Issue
Block a user