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