Skip to content

Commit

Permalink
Add release library
Browse files Browse the repository at this point in the history
  • Loading branch information
seungwoo-lee committed Jul 11, 2018
1 parent 22965d5 commit bdf62a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ function moveToAt(array, index, predicate) {
if (movingItems.length === 0)
return array;
var filteredArray = array.filter(function (item) { return !predicate(item); });
return filteredArray.slice(0, index).concat(movingItems, filteredArray.slice(index + movingItems.length));
return filteredArray.slice(0, index).concat(movingItems, filteredArray.slice(index, filteredArray.length));
}
exports.moveToAt = moveToAt;

0 comments on commit bdf62a4

Please sign in to comment.