es-toolkit 1.18.0-dev.595 → 1.18.0-dev.596

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.
@@ -78,6 +78,7 @@ export { clone } from '../object/clone.mjs';
78
78
  export { flattenObject } from '../object/flattenObject.mjs';
79
79
  export { cloneDeep } from '../object/cloneDeep.mjs';
80
80
  export { toMerged } from '../object/toMerged.mjs';
81
+ export { isDate } from '../predicate/isDate.mjs';
81
82
  export { isEqual } from '../predicate/isEqual.mjs';
82
83
  export { isNil } from '../predicate/isNil.mjs';
83
84
  export { isNotNil } from '../predicate/isNotNil.mjs';
@@ -78,6 +78,7 @@ export { clone } from '../object/clone.js';
78
78
  export { flattenObject } from '../object/flattenObject.js';
79
79
  export { cloneDeep } from '../object/cloneDeep.js';
80
80
  export { toMerged } from '../object/toMerged.js';
81
+ export { isDate } from '../predicate/isDate.js';
81
82
  export { isEqual } from '../predicate/isEqual.js';
82
83
  export { isNil } from '../predicate/isNil.js';
83
84
  export { isNotNil } from '../predicate/isNotNil.js';
@@ -8,7 +8,7 @@ const curry = require('../_chunk/curry-BmwJrK.js');
8
8
  const range = require('../_chunk/range-BXlMmn.js');
9
9
  const randomInt = require('../_chunk/randomInt-CF7bZK.js');
10
10
  const toMerged = require('../_chunk/toMerged-LBvzaK.js');
11
- const isWeakSet$1 = require('../_chunk/isWeakSet-Cg7dfc.js');
11
+ const isWeakSet$1 = require('../_chunk/isWeakSet-E_VMwB.js');
12
12
  const isPlainObject$1 = require('../_chunk/isPlainObject-BIekvL.js');
13
13
  const string_index = require('../string/index.js');
14
14
 
@@ -1318,6 +1318,7 @@ exports.omit = toMerged.omit;
1318
1318
  exports.omitBy = toMerged.omitBy;
1319
1319
  exports.pickBy = toMerged.pickBy;
1320
1320
  exports.toMerged = toMerged.toMerged;
1321
+ exports.isDate = isWeakSet$1.isDate;
1321
1322
  exports.isEqual = isWeakSet$1.isEqual;
1322
1323
  exports.isFunction = isWeakSet$1.isFunction;
1323
1324
  exports.isLength = isWeakSet$1.isLength;
@@ -79,6 +79,7 @@ export { flattenObject } from '../object/flattenObject.mjs';
79
79
  export { cloneDeep } from '../object/cloneDeep.mjs';
80
80
  export { isObjectLike } from './predicate/isObjectLike.mjs';
81
81
  export { toMerged } from '../object/toMerged.mjs';
82
+ export { isDate } from '../predicate/isDate.mjs';
82
83
  export { isEqual } from '../predicate/isEqual.mjs';
83
84
  export { isNil } from '../predicate/isNil.mjs';
84
85
  export { isNotNil } from '../predicate/isNotNil.mjs';
package/dist/index.d.mts CHANGED
@@ -94,6 +94,7 @@ export { cloneDeep } from './object/cloneDeep.mjs';
94
94
  export { merge } from './object/merge.mjs';
95
95
  export { toMerged } from './object/toMerged.mjs';
96
96
  export { mergeWith } from './object/mergeWith.mjs';
97
+ export { isDate } from './predicate/isDate.mjs';
97
98
  export { isEqual } from './predicate/isEqual.mjs';
98
99
  export { isNil } from './predicate/isNil.mjs';
99
100
  export { isNotNil } from './predicate/isNotNil.mjs';
package/dist/index.d.ts CHANGED
@@ -94,6 +94,7 @@ export { cloneDeep } from './object/cloneDeep.js';
94
94
  export { merge } from './object/merge.js';
95
95
  export { toMerged } from './object/toMerged.js';
96
96
  export { mergeWith } from './object/mergeWith.js';
97
+ export { isDate } from './predicate/isDate.js';
97
98
  export { isEqual } from './predicate/isEqual.js';
98
99
  export { isNil } from './predicate/isNil.js';
99
100
  export { isNotNil } from './predicate/isNotNil.js';
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ const randomInt = require('./_chunk/randomInt-CF7bZK.js');
12
12
  const math_index = require('./math/index.js');
13
13
  const toMerged = require('./_chunk/toMerged-LBvzaK.js');
14
14
  const object_index = require('./object/index.js');
15
- const isWeakSet = require('./_chunk/isWeakSet-Cg7dfc.js');
15
+ const isWeakSet = require('./_chunk/isWeakSet-E_VMwB.js');
16
16
  const isPlainObject = require('./_chunk/isPlainObject-BIekvL.js');
17
17
  const predicate_index = require('./predicate/index.js');
18
18
  const string_index = require('./string/index.js');
@@ -118,6 +118,7 @@ exports.pickBy = toMerged.pickBy;
118
118
  exports.toMerged = toMerged.toMerged;
119
119
  exports.mergeWith = object_index.mergeWith;
120
120
  exports.pick = object_index.pick;
121
+ exports.isDate = isWeakSet.isDate;
121
122
  exports.isEqual = isWeakSet.isEqual;
122
123
  exports.isFunction = isWeakSet.isFunction;
123
124
  exports.isLength = isWeakSet.isLength;
package/dist/index.mjs CHANGED
@@ -94,6 +94,7 @@ export { cloneDeep } from './object/cloneDeep.mjs';
94
94
  export { merge } from './object/merge.mjs';
95
95
  export { toMerged } from './object/toMerged.mjs';
96
96
  export { mergeWith } from './object/mergeWith.mjs';
97
+ export { isDate } from './predicate/isDate.mjs';
97
98
  export { isEqual } from './predicate/isEqual.mjs';
98
99
  export { isNil } from './predicate/isNil.mjs';
99
100
  export { isNotNil } from './predicate/isNotNil.mjs';
@@ -1,3 +1,4 @@
1
+ export { isDate } from './isDate.mjs';
1
2
  export { isEqual } from './isEqual.mjs';
2
3
  export { isNil } from './isNil.mjs';
3
4
  export { isNotNil } from './isNotNil.mjs';
@@ -1,3 +1,4 @@
1
+ export { isDate } from './isDate.js';
1
2
  export { isEqual } from './isEqual.js';
2
3
  export { isNil } from './isNil.js';
3
4
  export { isNotNil } from './isNotNil.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const isWeakSet = require('../_chunk/isWeakSet-Cg7dfc.js');
5
+ const isWeakSet = require('../_chunk/isWeakSet-E_VMwB.js');
6
6
  const isPlainObject = require('../_chunk/isPlainObject-BIekvL.js');
7
7
 
8
8
  function isRegExp(value) {
@@ -21,6 +21,7 @@ function isString(value) {
21
21
  return typeof value === 'string';
22
22
  }
23
23
 
24
+ exports.isDate = isWeakSet.isDate;
24
25
  exports.isEqual = isWeakSet.isEqual;
25
26
  exports.isFunction = isWeakSet.isFunction;
26
27
  exports.isLength = isWeakSet.isLength;
@@ -1,3 +1,4 @@
1
+ export { isDate } from './isDate.mjs';
1
2
  export { isEqual } from './isEqual.mjs';
2
3
  export { isNil } from './isNil.mjs';
3
4
  export { isNotNil } from './isNotNil.mjs';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Checks if `value` is a Date object.
3
+ *
4
+ * @param {unknown} value The value to check.
5
+ * @returns {value is Date} Returns `true` if `value` is a Date object, `false` otherwise.
6
+ *
7
+ * @example
8
+ * const value1 = new Date();
9
+ * const value2 = '2024-01-01';
10
+ *
11
+ * console.log(isDate(value1)); // true
12
+ * console.log(isDate(value2)); // false
13
+ */
14
+ declare function isDate(value: unknown): value is Date;
15
+
16
+ export { isDate };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Checks if `value` is a Date object.
3
+ *
4
+ * @param {unknown} value The value to check.
5
+ * @returns {value is Date} Returns `true` if `value` is a Date object, `false` otherwise.
6
+ *
7
+ * @example
8
+ * const value1 = new Date();
9
+ * const value2 = '2024-01-01';
10
+ *
11
+ * console.log(isDate(value1)); // true
12
+ * console.log(isDate(value2)); // false
13
+ */
14
+ declare function isDate(value: unknown): value is Date;
15
+
16
+ export { isDate };
@@ -0,0 +1,5 @@
1
+ function isDate(value) {
2
+ return value instanceof Date;
3
+ }
4
+
5
+ export { isDate };
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.18.0-dev.595+b870fa36",
4
+ "version": "1.18.0-dev.596+6e071573",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {