es-toolkit 1.16.0-dev.497 → 1.16.0-dev.500

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.
@@ -1,3 +1,4 @@
1
+ export { at } from '../array/at.mjs';
1
2
  export { compact } from '../array/compact.mjs';
2
3
  export { countBy } from '../array/countBy.mjs';
3
4
  export { differenceBy } from '../array/differenceBy.mjs';
@@ -1,3 +1,4 @@
1
+ export { at } from '../array/at.js';
1
2
  export { compact } from '../array/compact.js';
2
3
  export { countBy } from '../array/countBy.js';
3
4
  export { differenceBy } from '../array/differenceBy.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const initial = require('../_chunk/initial-DHQAoT.js');
5
+ const initial = require('../_chunk/initial-Ci2bn_.js');
6
6
  const promise_index = require('../_chunk/index-CoqN5B.js');
7
7
  const function_index = require('../function/index.js');
8
8
  const math_index = require('../math/index.js');
@@ -817,6 +817,7 @@ function min(items = []) {
817
817
  return minElement;
818
818
  }
819
819
 
820
+ exports.at = initial.at;
820
821
  exports.compact = initial.compact;
821
822
  exports.countBy = initial.countBy;
822
823
  exports.differenceBy = initial.differenceBy;
@@ -1,3 +1,4 @@
1
+ export { at } from '../array/at.mjs';
1
2
  export { compact } from '../array/compact.mjs';
2
3
  export { countBy } from '../array/countBy.mjs';
3
4
  export { differenceBy } from '../array/differenceBy.mjs';
@@ -5,6 +5,16 @@
5
5
  * @param {F} func - The function to cap arguments for.
6
6
  * @param {number} n - The arity cap.
7
7
  * @returns {(...args: any[]) => ReturnType<F>} Returns the new capped function.
8
+ *
9
+ * @example
10
+ * function fn(a: number, b: number, c: number) {
11
+ * return Array.from(arguments);
12
+ * }
13
+ *
14
+ * ary(fn, 0)(1, 2, 3) // []
15
+ * ary(fn, 1)(1, 2, 3) // [1]
16
+ * ary(fn, 2)(1, 2, 3) // [1, 2]
17
+ * ary(fn, 3)(1, 2, 3) // [1, 2, 3]
8
18
  */
9
19
  declare function ary<F extends (...args: any[]) => any>(func: F, n: number): (...args: any[]) => ReturnType<F>;
10
20
 
@@ -5,6 +5,16 @@
5
5
  * @param {F} func - The function to cap arguments for.
6
6
  * @param {number} n - The arity cap.
7
7
  * @returns {(...args: any[]) => ReturnType<F>} Returns the new capped function.
8
+ *
9
+ * @example
10
+ * function fn(a: number, b: number, c: number) {
11
+ * return Array.from(arguments);
12
+ * }
13
+ *
14
+ * ary(fn, 0)(1, 2, 3) // []
15
+ * ary(fn, 1)(1, 2, 3) // [1]
16
+ * ary(fn, 2)(1, 2, 3) // [1, 2]
17
+ * ary(fn, 3)(1, 2, 3) // [1, 2, 3]
8
18
  */
9
19
  declare function ary<F extends (...args: any[]) => any>(func: F, n: number): (...args: any[]) => ReturnType<F>;
10
20
 
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ export { at } from './array/at.mjs';
1
2
  export { chunk } from './array/chunk.mjs';
2
3
  export { compact } from './array/compact.mjs';
3
4
  export { countBy } from './array/countBy.mjs';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { at } from './array/at.js';
1
2
  export { chunk } from './array/chunk.js';
2
3
  export { compact } from './array/compact.js';
3
4
  export { countBy } from './array/countBy.js';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const initial = require('./_chunk/initial-DHQAoT.js');
5
+ const initial = require('./_chunk/initial-Ci2bn_.js');
6
6
  const array_index = require('./array/index.js');
7
7
  const promise_index = require('./_chunk/index-CoqN5B.js');
8
8
  const function_index = require('./function/index.js');
@@ -17,6 +17,7 @@ const string_index = require('./string/index.js');
17
17
 
18
18
 
19
19
 
20
+ exports.at = initial.at;
20
21
  exports.chunk = initial.chunk;
21
22
  exports.compact = initial.compact;
22
23
  exports.countBy = initial.countBy;
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ export { at } from './array/at.mjs';
1
2
  export { chunk } from './array/chunk.mjs';
2
3
  export { compact } from './array/compact.mjs';
3
4
  export { countBy } from './array/countBy.mjs';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.16.0-dev.497+27b483e9",
4
+ "version": "1.16.0-dev.500+1890d8ff",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {