ran npm run tdd & generated TDD
This commit is contained in:
4
test/dropElements/dropElements.js
Normal file
4
test/dropElements/dropElements.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = (arr, func) => {
|
||||
while (arr.length > 0 && !func(arr[0])) arr = arr.slice(1);
|
||||
return arr;
|
||||
};
|
||||
Reference in New Issue
Block a user