es-toolkit 1.20.0-dev.655 → 1.20.0-dev.656
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Casts value as an array if it's not one.
|
|
3
3
|
*
|
|
4
4
|
* @template T The type of elements in the array.
|
|
5
|
-
* @param {T |
|
|
5
|
+
* @param {T | T[]} value The value to be cast to an array.
|
|
6
6
|
* @returns {T[]} An array containing the input value if it wasn't an array, or the original array if it was.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* const arr3 = castArray({'a': 1});
|
|
16
16
|
* // Returns: [{'a': 1}]
|
|
17
17
|
*
|
|
18
|
-
* const arr4 =
|
|
18
|
+
* const arr4 = castArray(null);
|
|
19
19
|
* // Returns: [null]
|
|
20
20
|
*
|
|
21
21
|
* const arr5 = castArray(undefined);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Casts value as an array if it's not one.
|
|
3
3
|
*
|
|
4
4
|
* @template T The type of elements in the array.
|
|
5
|
-
* @param {T |
|
|
5
|
+
* @param {T | T[]} value The value to be cast to an array.
|
|
6
6
|
* @returns {T[]} An array containing the input value if it wasn't an array, or the original array if it was.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* const arr3 = castArray({'a': 1});
|
|
16
16
|
* // Returns: [{'a': 1}]
|
|
17
17
|
*
|
|
18
|
-
* const arr4 =
|
|
18
|
+
* const arr4 = castArray(null);
|
|
19
19
|
* // Returns: [null]
|
|
20
20
|
*
|
|
21
21
|
* const arr5 = castArray(undefined);
|
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.20.0-dev.
|
|
4
|
+
"version": "1.20.0-dev.656+76235035",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|