es-toolkit 1.39.5-dev.1393 → 1.39.5-dev.1395
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/fill.d.mts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* start index up to the end index (non-inclusive). If the start or end indices are not provided, it defaults to filling the
|
|
6
6
|
* entire array.
|
|
7
7
|
*
|
|
8
|
-
* @template T
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {
|
|
11
|
-
* @returns {
|
|
8
|
+
* @template T - The type of the value to fill the array with.
|
|
9
|
+
* @param {unknown[]} array - The array to fill.
|
|
10
|
+
* @param {T} value - The value to fill the array with.
|
|
11
|
+
* @returns {T[]} The array with the filled values.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* const array = [1, 2, 3];
|
|
@@ -32,7 +32,8 @@ declare function fill<T>(array: unknown[], value: T): T[];
|
|
|
32
32
|
* start index up to the end index (non-inclusive). If the start or end indices are not provided, it defaults to filling the
|
|
33
33
|
* entire array.
|
|
34
34
|
*
|
|
35
|
-
* @template T
|
|
35
|
+
* @template T - The type of elements in the original array.
|
|
36
|
+
* @template U - The type of the value to fill the array with.
|
|
36
37
|
* @param {Array<T | U>} array - The array to fill.
|
|
37
38
|
* @param {U} value - The value to fill the array with.
|
|
38
39
|
* @param {number} [start=0] - The start position. Defaults to 0.
|
|
@@ -60,7 +61,8 @@ declare function fill<T, U>(array: Array<T | U>, value: U, start: number): Array
|
|
|
60
61
|
* start index up to the end index (non-inclusive). If the start or end indices are not provided, it defaults to filling the
|
|
61
62
|
* entire array.
|
|
62
63
|
*
|
|
63
|
-
* @template T
|
|
64
|
+
* @template T - The type of elements in the original array.
|
|
65
|
+
* @template U - The type of the value to fill the array with.
|
|
64
66
|
* @param {Array<T | U>} array - The array to fill.
|
|
65
67
|
* @param {U} value - The value to fill the array with.
|
|
66
68
|
* @param {number} [start=0] - The start position. Defaults to 0.
|
package/dist/array/fill.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* start index up to the end index (non-inclusive). If the start or end indices are not provided, it defaults to filling the
|
|
6
6
|
* entire array.
|
|
7
7
|
*
|
|
8
|
-
* @template T
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {
|
|
11
|
-
* @returns {
|
|
8
|
+
* @template T - The type of the value to fill the array with.
|
|
9
|
+
* @param {unknown[]} array - The array to fill.
|
|
10
|
+
* @param {T} value - The value to fill the array with.
|
|
11
|
+
* @returns {T[]} The array with the filled values.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* const array = [1, 2, 3];
|
|
@@ -32,7 +32,8 @@ declare function fill<T>(array: unknown[], value: T): T[];
|
|
|
32
32
|
* start index up to the end index (non-inclusive). If the start or end indices are not provided, it defaults to filling the
|
|
33
33
|
* entire array.
|
|
34
34
|
*
|
|
35
|
-
* @template T
|
|
35
|
+
* @template T - The type of elements in the original array.
|
|
36
|
+
* @template U - The type of the value to fill the array with.
|
|
36
37
|
* @param {Array<T | U>} array - The array to fill.
|
|
37
38
|
* @param {U} value - The value to fill the array with.
|
|
38
39
|
* @param {number} [start=0] - The start position. Defaults to 0.
|
|
@@ -60,7 +61,8 @@ declare function fill<T, U>(array: Array<T | U>, value: U, start: number): Array
|
|
|
60
61
|
* start index up to the end index (non-inclusive). If the start or end indices are not provided, it defaults to filling the
|
|
61
62
|
* entire array.
|
|
62
63
|
*
|
|
63
|
-
* @template T
|
|
64
|
+
* @template T - The type of elements in the original array.
|
|
65
|
+
* @template U - The type of the value to fill the array with.
|
|
64
66
|
* @param {Array<T | U>} array - The array to fill.
|
|
65
67
|
* @param {U} value - The value to fill the array with.
|
|
66
68
|
* @param {number} [start=0] - The start position. Defaults to 0.
|