Skip to content

Commit

Permalink
fix(dropRight): add back missing export (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ze-flo authored Nov 17, 2023
1 parent 1ff2786 commit 6efdfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const chunk = (arr, chunkSize = 1, cache = []) => {

export const difference = (arr1, arr2) => arr1.filter((x) => !arr2.includes(x));

const dropRight = (arr, n = 1) => arr.slice(0, -n || arr.length);
export const dropRight = (arr, n = 1) => arr.slice(0, -n || arr.length);

const findLastIndex = (arr, func) => {
const reverseIdx = [...arr].reverse().findIndex(func);
Expand Down

0 comments on commit 6efdfd7

Please sign in to comment.