ran npm run tdd
This commit is contained in:
@ -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
|
||||
Reference in New Issue
Block a user