Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/takeRight/takeRight.js
Normal file
2
test/takeRight/takeRight.js
Normal file
@ -0,0 +1,2 @@
|
||||
const takeRight = (arr, n = 1) => arr.slice(arr.length - n, arr.length);
|
||||
module.exports = takeRight;
|
||||
Reference in New Issue
Block a user