es-toolkit 1.27.0-dev.902 → 1.27.0-dev.904
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/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.d.mts +1 -0
- package/dist/compat/index.d.ts +1 -0
- package/dist/compat/index.js +8 -0
- package/dist/compat/index.mjs +1 -0
- package/dist/compat/util/gte.d.mts +15 -0
- package/dist/compat/util/gte.d.ts +15 -0
- package/dist/compat/util/gte.mjs +10 -0
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -222,6 +222,7 @@ export { words } from './string/words.mjs';
|
|
|
222
222
|
export { constant } from './util/constant.mjs';
|
|
223
223
|
export { defaultTo } from './util/defaultTo.mjs';
|
|
224
224
|
export { eq } from './util/eq.mjs';
|
|
225
|
+
export { gte } from './util/gte.mjs';
|
|
225
226
|
export { gt } from './util/gt.mjs';
|
|
226
227
|
export { iteratee } from './util/iteratee.mjs';
|
|
227
228
|
export { times } from './util/times.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -222,6 +222,7 @@ export { words } from './string/words.js';
|
|
|
222
222
|
export { constant } from './util/constant.js';
|
|
223
223
|
export { defaultTo } from './util/defaultTo.js';
|
|
224
224
|
export { eq } from './util/eq.js';
|
|
225
|
+
export { gte } from './util/gte.js';
|
|
225
226
|
export { gt } from './util/gt.js';
|
|
226
227
|
export { iteratee } from './util/iteratee.js';
|
|
227
228
|
export { times } from './util/times.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -2628,6 +2628,13 @@ function defaultTo(value, defaultValue) {
|
|
|
2628
2628
|
return value;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
|
+
function gte(value, other) {
|
|
2632
|
+
if (typeof value === 'string' && typeof other === 'string') {
|
|
2633
|
+
return value >= other;
|
|
2634
|
+
}
|
|
2635
|
+
return toNumber(value) >= toNumber(other);
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2631
2638
|
function gt(value, other) {
|
|
2632
2639
|
if (typeof value === 'string' && typeof other === 'string') {
|
|
2633
2640
|
return value > other;
|
|
@@ -2810,6 +2817,7 @@ exports.forEach = forEach;
|
|
|
2810
2817
|
exports.fromPairs = fromPairs;
|
|
2811
2818
|
exports.get = get;
|
|
2812
2819
|
exports.gt = gt;
|
|
2820
|
+
exports.gte = gte;
|
|
2813
2821
|
exports.has = has;
|
|
2814
2822
|
exports.head = head;
|
|
2815
2823
|
exports.inRange = inRange;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -221,6 +221,7 @@ export { upperCase } from './string/upperCase.mjs';
|
|
|
221
221
|
export { words } from './string/words.mjs';
|
|
222
222
|
export { constant } from './util/constant.mjs';
|
|
223
223
|
export { defaultTo } from './util/defaultTo.mjs';
|
|
224
|
+
export { gte } from './util/gte.mjs';
|
|
224
225
|
export { gt } from './util/gt.mjs';
|
|
225
226
|
export { iteratee } from './util/iteratee.mjs';
|
|
226
227
|
export { times } from './util/times.mjs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if value is greater than or equal to other.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} value The value to compare.
|
|
5
|
+
* @param {unknown} other The other value to compare.
|
|
6
|
+
* @returns {boolean} Returns `true` if value is greater than or equal to other, else `false`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* gte(3, 1); // => true
|
|
10
|
+
* gte(3, 3); // => true
|
|
11
|
+
* gte(1, 3); // => false
|
|
12
|
+
*/
|
|
13
|
+
declare function gte(value: unknown, other: unknown): boolean;
|
|
14
|
+
|
|
15
|
+
export { gte };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if value is greater than or equal to other.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} value The value to compare.
|
|
5
|
+
* @param {unknown} other The other value to compare.
|
|
6
|
+
* @returns {boolean} Returns `true` if value is greater than or equal to other, else `false`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* gte(3, 1); // => true
|
|
10
|
+
* gte(3, 3); // => true
|
|
11
|
+
* gte(1, 3); // => false
|
|
12
|
+
*/
|
|
13
|
+
declare function gte(value: unknown, other: unknown): boolean;
|
|
14
|
+
|
|
15
|
+
export { gte };
|
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.27.0-dev.
|
|
4
|
+
"version": "1.27.0-dev.904+05261a91",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|