es-toolkit 1.24.0-dev.776 → 1.24.0-dev.777
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunk/{unary-BZ5Ixo.js → unary-CMvKXy.js} +2 -2
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.js +1 -1
- package/dist/function/after.d.mts +2 -2
- package/dist/function/after.d.ts +2 -2
- package/dist/function/after.mjs +2 -2
- package/dist/function/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ function after(n, func) {
|
|
|
5
5
|
throw new Error(`n must be a non-negative integer.`);
|
|
6
6
|
}
|
|
7
7
|
let counter = 0;
|
|
8
|
-
return (
|
|
8
|
+
return (...args) => {
|
|
9
9
|
if (++counter >= n) {
|
|
10
10
|
return func(...args);
|
|
11
11
|
}
|
|
12
12
|
return undefined;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
function ary(func, n) {
|