@salespark/toolkit 2.1.11 → 2.1.12
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/README.md +40 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -437,7 +437,7 @@ declare const toInteger: typeof safeParseInt;
|
|
|
437
437
|
* Handles commas as decimal/thousands separators. Returns 0 for null/undefined/empty string or invalid parsing.
|
|
438
438
|
* Examples: safeParseFloat("123.45") -> 123.45, safeParseFloat("123,45") -> 123.45, safeParseFloat("1,234.56") -> 1234.56, safeParseFloat("abc", 2) -> 0, safeParseFloat(42) -> 42
|
|
439
439
|
* @param {unknown} value - Value to convert
|
|
440
|
-
* @param {number} decimals - Number of decimal places
|
|
440
|
+
* @param {number} decimals - Number of decimal places (default 6)
|
|
441
441
|
* History:
|
|
442
442
|
* 21-08-2025: Created
|
|
443
443
|
* 29-10-2025: Renamed from toNumber to safeParseFloat
|
package/dist/index.d.ts
CHANGED
|
@@ -437,7 +437,7 @@ declare const toInteger: typeof safeParseInt;
|
|
|
437
437
|
* Handles commas as decimal/thousands separators. Returns 0 for null/undefined/empty string or invalid parsing.
|
|
438
438
|
* Examples: safeParseFloat("123.45") -> 123.45, safeParseFloat("123,45") -> 123.45, safeParseFloat("1,234.56") -> 1234.56, safeParseFloat("abc", 2) -> 0, safeParseFloat(42) -> 42
|
|
439
439
|
* @param {unknown} value - Value to convert
|
|
440
|
-
* @param {number} decimals - Number of decimal places
|
|
440
|
+
* @param {number} decimals - Number of decimal places (default 6)
|
|
441
441
|
* History:
|
|
442
442
|
* 21-08-2025: Created
|
|
443
443
|
* 29-10-2025: Renamed from toNumber to safeParseFloat
|