es-toolkit 1.31.0-dev.1000 → 1.31.0-dev.1001
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/array/at.d.mts
CHANGED
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* const result = at(numbers, [1, 3, 4]);
|
|
14
14
|
* console.log(result); // [20, 40, 50]
|
|
15
15
|
*/
|
|
16
|
-
declare function at<T>(arr: readonly T[], indices: number[]):
|
|
16
|
+
declare function at<T>(arr: readonly T[], indices: number[]): T[];
|
|
17
17
|
|
|
18
18
|
export { at };
|
package/dist/array/at.d.ts
CHANGED
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* const result = at(numbers, [1, 3, 4]);
|
|
14
14
|
* console.log(result); // [20, 40, 50]
|
|
15
15
|
*/
|
|
16
|
-
declare function at<T>(arr: readonly T[], indices: number[]):
|
|
16
|
+
declare function at<T>(arr: readonly T[], indices: number[]): T[];
|
|
17
17
|
|
|
18
18
|
export { at };
|
package/dist/array/pullAt.d.mts
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* console.log(removed); // [20, 40, 50]
|
|
17
17
|
* console.log(numbers); // [10, 30]
|
|
18
18
|
*/
|
|
19
|
-
declare function pullAt<T>(arr: T[], indicesToRemove: number[]):
|
|
19
|
+
declare function pullAt<T>(arr: T[], indicesToRemove: number[]): T[];
|
|
20
20
|
|
|
21
21
|
export { pullAt };
|
package/dist/array/pullAt.d.ts
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* console.log(removed); // [20, 40, 50]
|
|
17
17
|
* console.log(numbers); // [10, 30]
|
|
18
18
|
*/
|
|
19
|
-
declare function pullAt<T>(arr: T[], indicesToRemove: number[]):
|
|
19
|
+
declare function pullAt<T>(arr: T[], indicesToRemove: number[]): T[];
|
|
20
20
|
|
|
21
21
|
export { pullAt };
|