Updated linter to work with restructure

This commit is contained in:
Angelos Chalaris
2017-12-27 17:05:21 +02:00
parent eb0bf7427f
commit ea043445d0
33 changed files with 52 additions and 51 deletions

View File

@ -10,11 +10,11 @@ Use `Array.push()` to keep track of pulled values
const pullAtIndex = (arr, pullArr) => {
let removed = [];
let pulled = arr.map((v, i) => pullArr.includes(i) ? removed.push(v) : v)
.filter((v, i) => !pullArr.includes(i))
.filter((v, i) => !pullArr.includes(i));
arr.length = 0;
pulled.forEach(v => arr.push(v));
return removed;
}
};
```
```js