es-toolkit 1.20.0-dev.650 → 1.20.0-dev.652
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 +5 -0
- package/dist/compat/index.mjs +1 -0
- package/dist/compat/predicate/isFinite.d.mts +20 -0
- package/dist/compat/predicate/isFinite.d.ts +20 -0
- package/dist/compat/predicate/isFinite.mjs +5 -0
- package/dist/object/omit.d.mts +1 -1
- package/dist/object/omit.d.ts +1 -1
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -141,6 +141,7 @@ export { isObject } from './predicate/isObject.mjs';
|
|
|
141
141
|
export { isObjectLike } from './predicate/isObjectLike.mjs';
|
|
142
142
|
export { isBoolean } from './predicate/isBoolean.mjs';
|
|
143
143
|
export { isError } from './predicate/isError.mjs';
|
|
144
|
+
export { isFinite } from './predicate/isFinite.mjs';
|
|
144
145
|
export { isTypedArray } from './predicate/isTypedArray.mjs';
|
|
145
146
|
export { isMatch } from './predicate/isMatch.mjs';
|
|
146
147
|
export { isRegExp } from './predicate/isRegExp.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ export { isObject } from './predicate/isObject.js';
|
|
|
141
141
|
export { isObjectLike } from './predicate/isObjectLike.js';
|
|
142
142
|
export { isBoolean } from './predicate/isBoolean.js';
|
|
143
143
|
export { isError } from './predicate/isError.js';
|
|
144
|
+
export { isFinite } from './predicate/isFinite.js';
|
|
144
145
|
export { isTypedArray } from './predicate/isTypedArray.js';
|
|
145
146
|
export { isMatch } from './predicate/isMatch.js';
|
|
146
147
|
export { isRegExp } from './predicate/isRegExp.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -1237,6 +1237,10 @@ function isError(value) {
|
|
|
1237
1237
|
return isWeakSet$1.getTag(value) === '[object Error]';
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
|
+
function isFinite(value) {
|
|
1241
|
+
return Number.isFinite(value);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1240
1244
|
function isRegExp(value) {
|
|
1241
1245
|
return isWeakSet$1.isRegExp(value);
|
|
1242
1246
|
}
|
|
@@ -1745,6 +1749,7 @@ exports.isArrayLike = isArrayLike;
|
|
|
1745
1749
|
exports.isArrayLikeObject = isArrayLikeObject;
|
|
1746
1750
|
exports.isBoolean = isBoolean;
|
|
1747
1751
|
exports.isError = isError;
|
|
1752
|
+
exports.isFinite = isFinite;
|
|
1748
1753
|
exports.isInteger = isInteger;
|
|
1749
1754
|
exports.isMatch = isMatch;
|
|
1750
1755
|
exports.isNaN = isNaN;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -141,6 +141,7 @@ export { isSymbol } from './predicate/isSymbol.mjs';
|
|
|
141
141
|
export { isObject } from './predicate/isObject.mjs';
|
|
142
142
|
export { isBoolean } from './predicate/isBoolean.mjs';
|
|
143
143
|
export { isError } from './predicate/isError.mjs';
|
|
144
|
+
export { isFinite } from './predicate/isFinite.mjs';
|
|
144
145
|
export { isTypedArray } from './predicate/isTypedArray.mjs';
|
|
145
146
|
export { isMatch } from './predicate/isMatch.mjs';
|
|
146
147
|
export { isRegExp } from './predicate/isRegExp.mjs';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if `value` is a finite number.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} value The value to check.
|
|
5
|
+
* @returns {value is number} Returns `true` if `value` is a finite number, `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const value1 = 100;
|
|
10
|
+
* const value2 = Infinity;
|
|
11
|
+
* const value3 = '100';
|
|
12
|
+
*
|
|
13
|
+
* console.log(isFinite(value1)); // true
|
|
14
|
+
* console.log(isFinite(value2)); // false
|
|
15
|
+
* console.log(isFinite(value3)); // false
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare function isFinite(value: unknown): value is number;
|
|
19
|
+
|
|
20
|
+
export { isFinite };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if `value` is a finite number.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} value The value to check.
|
|
5
|
+
* @returns {value is number} Returns `true` if `value` is a finite number, `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const value1 = 100;
|
|
10
|
+
* const value2 = Infinity;
|
|
11
|
+
* const value3 = '100';
|
|
12
|
+
*
|
|
13
|
+
* console.log(isFinite(value1)); // true
|
|
14
|
+
* console.log(isFinite(value2)); // false
|
|
15
|
+
* console.log(isFinite(value3)); // false
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare function isFinite(value: unknown): value is number;
|
|
19
|
+
|
|
20
|
+
export { isFinite };
|
package/dist/object/omit.d.mts
CHANGED
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
* const result = omit(obj, ['b', 'c']);
|
|
16
16
|
* // result will be { a: 1 }
|
|
17
17
|
*/
|
|
18
|
-
declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
18
|
+
declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: readonly K[]): Omit<T, K>;
|
|
19
19
|
|
|
20
20
|
export { omit };
|
package/dist/object/omit.d.ts
CHANGED
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
* const result = omit(obj, ['b', 'c']);
|
|
16
16
|
* // result will be { a: 1 }
|
|
17
17
|
*/
|
|
18
|
-
declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
18
|
+
declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: readonly K[]): Omit<T, K>;
|
|
19
19
|
|
|
20
20
|
export { omit };
|
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.652+8b2cfa02",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|