diff --git a/index.js b/index.js index 0f6dd46..3f1550d 100644 --- a/index.js +++ b/index.js @@ -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);