ran npm run tdd

This commit is contained in:
King
2018-01-17 13:40:40 -05:00
parent f232347f8a
commit 129a6fb333
244 changed files with 894 additions and 371 deletions

View File

@ -1,4 +1,4 @@
module.exports = pullAtIndex = (arr, pullArr) => {
const pullAtIndex = (arr, pullArr) => {
let removed = [];
let pulled = arr
.map((v, i) => (pullArr.includes(i) ? removed.push(v) : v))
@ -6,4 +6,5 @@ let pulled = arr
arr.length = 0;
pulled.forEach(v => arr.push(v));
return removed;
};
};
module.exports = pullAtIndex