es-toolkit 1.23.0-dev.721 → 1.23.0-dev.723

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.
@@ -71,7 +71,6 @@ export { toMerged } from '../object/toMerged.mjs';
71
71
  export { isArrayBuffer } from '../predicate/isArrayBuffer.mjs';
72
72
  export { isDate } from '../predicate/isDate.mjs';
73
73
  export { isEqual } from '../predicate/isEqual.mjs';
74
- export { isMap } from '../predicate/isMap.mjs';
75
74
  export { isNotNil } from '../predicate/isNotNil.mjs';
76
75
  export { isNull } from '../predicate/isNull.mjs';
77
76
  export { isUndefined } from '../predicate/isUndefined.mjs';
@@ -81,7 +80,6 @@ export { isPrimitive } from '../predicate/isPrimitive.mjs';
81
80
  export { isJSONObject } from '../predicate/isJSONObject.mjs';
82
81
  export { isJSONValue } from '../predicate/isJSONValue.mjs';
83
82
  export { isJSONArray } from '../predicate/isJSONArray.mjs';
84
- export { isSet } from '../predicate/isSet.mjs';
85
83
  export { delay } from '../promise/delay.mjs';
86
84
  export { withTimeout } from '../promise/withTimeout.mjs';
87
85
  export { timeout } from '../promise/timeout.mjs';
@@ -158,6 +156,8 @@ export { isError } from './predicate/isError.mjs';
158
156
  export { isFinite } from './predicate/isFinite.mjs';
159
157
  export { isTypedArray } from './predicate/isTypedArray.mjs';
160
158
  export { isMatch } from './predicate/isMatch.mjs';
159
+ export { isMap } from './predicate/isMap.mjs';
160
+ export { isSet } from './predicate/isSet.mjs';
161
161
  export { isRegExp } from './predicate/isRegExp.mjs';
162
162
  export { isString } from './predicate/isString.mjs';
163
163
  export { matches } from './predicate/matches.mjs';
@@ -71,7 +71,6 @@ export { toMerged } from '../object/toMerged.js';
71
71
  export { isArrayBuffer } from '../predicate/isArrayBuffer.js';
72
72
  export { isDate } from '../predicate/isDate.js';
73
73
  export { isEqual } from '../predicate/isEqual.js';
74
- export { isMap } from '../predicate/isMap.js';
75
74
  export { isNotNil } from '../predicate/isNotNil.js';
76
75
  export { isNull } from '../predicate/isNull.js';
77
76
  export { isUndefined } from '../predicate/isUndefined.js';
@@ -81,7 +80,6 @@ export { isPrimitive } from '../predicate/isPrimitive.js';
81
80
  export { isJSONObject } from '../predicate/isJSONObject.js';
82
81
  export { isJSONValue } from '../predicate/isJSONValue.js';
83
82
  export { isJSONArray } from '../predicate/isJSONArray.js';
84
- export { isSet } from '../predicate/isSet.js';
85
83
  export { delay } from '../promise/delay.js';
86
84
  export { withTimeout } from '../promise/withTimeout.js';
87
85
  export { timeout } from '../promise/timeout.js';
@@ -158,6 +156,8 @@ export { isError } from './predicate/isError.js';
158
156
  export { isFinite } from './predicate/isFinite.js';
159
157
  export { isTypedArray } from './predicate/isTypedArray.js';
160
158
  export { isMatch } from './predicate/isMatch.js';
159
+ export { isMap } from './predicate/isMap.js';
160
+ export { isSet } from './predicate/isSet.js';
161
161
  export { isRegExp } from './predicate/isRegExp.js';
162
162
  export { isString } from './predicate/isString.js';
163
163
  export { matches } from './predicate/matches.js';
@@ -1466,6 +1466,14 @@ function isFinite(value) {
1466
1466
  return Number.isFinite(value);
1467
1467
  }
1468
1468
 
1469
+ function isMap(value) {
1470
+ return isWeakSet$1.isMap(value);
1471
+ }
1472
+
1473
+ function isSet(value) {
1474
+ return isWeakSet$1.isSet(value);
1475
+ }
1476
+
1469
1477
  function isRegExp(value) {
1470
1478
  return isWeakSet$1.isRegExp(value);
1471
1479
  }
@@ -1938,10 +1946,8 @@ exports.isJSONArray = isWeakSet$1.isJSONArray;
1938
1946
  exports.isJSONObject = isWeakSet$1.isJSONObject;
1939
1947
  exports.isJSONValue = isWeakSet$1.isJSONValue;
1940
1948
  exports.isLength = isWeakSet$1.isLength;
1941
- exports.isMap = isWeakSet$1.isMap;
1942
1949
  exports.isNotNil = isWeakSet$1.isNotNil;
1943
1950
  exports.isNull = isWeakSet$1.isNull;
1944
- exports.isSet = isWeakSet$1.isSet;
1945
1951
  exports.isUndefined = isWeakSet$1.isUndefined;
1946
1952
  exports.capitalize = pad$1.capitalize;
1947
1953
  exports.constantCase = pad$1.constantCase;
@@ -2001,6 +2007,7 @@ exports.isEqualWith = isEqualWith;
2001
2007
  exports.isError = isError;
2002
2008
  exports.isFinite = isFinite;
2003
2009
  exports.isInteger = isInteger;
2010
+ exports.isMap = isMap;
2004
2011
  exports.isMatch = isMatch;
2005
2012
  exports.isNaN = isNaN;
2006
2013
  exports.isNil = isNil;
@@ -2009,6 +2016,7 @@ exports.isObject = isObject;
2009
2016
  exports.isPlainObject = isPlainObject;
2010
2017
  exports.isRegExp = isRegExp;
2011
2018
  exports.isSafeInteger = isSafeInteger;
2019
+ exports.isSet = isSet;
2012
2020
  exports.isString = isString;
2013
2021
  exports.isSymbol = isSymbol;
2014
2022
  exports.isTypedArray = isTypedArray;
@@ -73,7 +73,6 @@ export { isObjectLike } from './predicate/isObjectLike.mjs';
73
73
  export { isArrayBuffer } from '../predicate/isArrayBuffer.mjs';
74
74
  export { isDate } from '../predicate/isDate.mjs';
75
75
  export { isEqual } from '../predicate/isEqual.mjs';
76
- export { isMap } from '../predicate/isMap.mjs';
77
76
  export { isNotNil } from '../predicate/isNotNil.mjs';
78
77
  export { isNull } from '../predicate/isNull.mjs';
79
78
  export { isUndefined } from '../predicate/isUndefined.mjs';
@@ -82,7 +81,6 @@ export { isFunction } from '../predicate/isFunction.mjs';
82
81
  export { isJSONObject } from '../predicate/isJSONObject.mjs';
83
82
  export { isJSONValue } from '../predicate/isJSONValue.mjs';
84
83
  export { isJSONArray } from '../predicate/isJSONArray.mjs';
85
- export { isSet } from '../predicate/isSet.mjs';
86
84
  export { delay } from '../promise/delay.mjs';
87
85
  export { withTimeout } from '../promise/withTimeout.mjs';
88
86
  export { timeout } from '../promise/timeout.mjs';
@@ -158,6 +156,8 @@ export { isError } from './predicate/isError.mjs';
158
156
  export { isFinite } from './predicate/isFinite.mjs';
159
157
  export { isTypedArray } from './predicate/isTypedArray.mjs';
160
158
  export { isMatch } from './predicate/isMatch.mjs';
159
+ export { isMap } from './predicate/isMap.mjs';
160
+ export { isSet } from './predicate/isSet.mjs';
161
161
  export { isRegExp } from './predicate/isRegExp.mjs';
162
162
  export { isString } from './predicate/isString.mjs';
163
163
  export { matches } from './predicate/matches.mjs';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Checks if a given value is `Map`.
3
+ *
4
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Map`.
5
+ *
6
+ * @param {unknown} value The value to check if it is a `Map`.
7
+ * @returns {value is Map<any, any>} Returns `true` if `value` is a `Map`, else `false`.
8
+ *
9
+ * @example
10
+ * const value1 = new Map();
11
+ * const value2 = new Set();
12
+ * const value3 = new WeakMap();
13
+ *
14
+ * console.log(isMap(value1)); // true
15
+ * console.log(isMap(value2)); // false
16
+ * console.log(isMap(value3)); // false
17
+ */
18
+ declare function isMap(value?: unknown): value is Map<any, any>;
19
+
20
+ export { isMap };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Checks if a given value is `Map`.
3
+ *
4
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Map`.
5
+ *
6
+ * @param {unknown} value The value to check if it is a `Map`.
7
+ * @returns {value is Map<any, any>} Returns `true` if `value` is a `Map`, else `false`.
8
+ *
9
+ * @example
10
+ * const value1 = new Map();
11
+ * const value2 = new Set();
12
+ * const value3 = new WeakMap();
13
+ *
14
+ * console.log(isMap(value1)); // true
15
+ * console.log(isMap(value2)); // false
16
+ * console.log(isMap(value3)); // false
17
+ */
18
+ declare function isMap(value?: unknown): value is Map<any, any>;
19
+
20
+ export { isMap };
@@ -0,0 +1,7 @@
1
+ import { isMap as isMap$1 } from '../../predicate/isMap.mjs';
2
+
3
+ function isMap(value) {
4
+ return isMap$1(value);
5
+ }
6
+
7
+ export { isMap };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Checks if a given value is `Set`.
3
+ *
4
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Set`.
5
+ *
6
+ * @param {unknown} value The value to check if it is a `Set`.
7
+ * @returns {value is Set<any>} Returns `true` if `value` is a `Set`, else `false`.
8
+ *
9
+ * @example
10
+ * const value1 = new Set();
11
+ * const value2 = new Map();
12
+ * const value3 = new WeakSet();
13
+ *
14
+ * console.log(isSet(value1)); // true
15
+ * console.log(isSet(value2)); // false
16
+ * console.log(isSet(value3)); // false
17
+ */
18
+ declare function isSet(value?: unknown): value is Set<any>;
19
+
20
+ export { isSet };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Checks if a given value is `Set`.
3
+ *
4
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Set`.
5
+ *
6
+ * @param {unknown} value The value to check if it is a `Set`.
7
+ * @returns {value is Set<any>} Returns `true` if `value` is a `Set`, else `false`.
8
+ *
9
+ * @example
10
+ * const value1 = new Set();
11
+ * const value2 = new Map();
12
+ * const value3 = new WeakSet();
13
+ *
14
+ * console.log(isSet(value1)); // true
15
+ * console.log(isSet(value2)); // false
16
+ * console.log(isSet(value3)); // false
17
+ */
18
+ declare function isSet(value?: unknown): value is Set<any>;
19
+
20
+ export { isSet };
@@ -0,0 +1,7 @@
1
+ import { isSet as isSet$1 } from '../../predicate/isSet.mjs';
2
+
3
+ function isSet(value) {
4
+ return isSet$1(value);
5
+ }
6
+
7
+ export { isSet };
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.23.0-dev.721+c6c76dba",
4
+ "version": "1.23.0-dev.723+57155d7f",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {