@mll-lab/js-utils 2.16.0 → 2.17.1
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/index.common.js +12 -1
- package/dist/index.common.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/pick.d.ts +7 -0
- package/dist/pick.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15257,7 +15257,7 @@ function formatGermanNumber(value, _a = {}) {
|
|
|
15257
15257
|
if (Number.isNaN(parsed)) {
|
|
15258
15258
|
return defaultValue !== null && defaultValue !== void 0 ? defaultValue : '';
|
|
15259
15259
|
}
|
|
15260
|
-
return parsed.toLocaleString('de-DE', Object.assign(
|
|
15260
|
+
return parsed.toLocaleString('de-DE', Object.assign({ maximumFractionDigits: 6 }, localeOptions));
|
|
15261
15261
|
}
|
|
15262
15262
|
/**
|
|
15263
15263
|
* Parse an input into a number on a best effort basis.
|
|
@@ -15309,6 +15309,16 @@ function firstDecimalDigit(number) {
|
|
|
15309
15309
|
return Number(regExpMatchArray[1]);
|
|
15310
15310
|
}
|
|
15311
15311
|
|
|
15312
|
+
/**
|
|
15313
|
+
* A version of lodash.pick() that forces the strict signature.
|
|
15314
|
+
*
|
|
15315
|
+
* lodash.pick({}, 'dummy') -> ok
|
|
15316
|
+
* pick({}, 'dummy') -> error
|
|
15317
|
+
*/
|
|
15318
|
+
function pick(object, ...props) {
|
|
15319
|
+
return lodash.pick(object, props);
|
|
15320
|
+
}
|
|
15321
|
+
|
|
15312
15322
|
function pluralize(amount, singular, plural) {
|
|
15313
15323
|
if (amount === 1) {
|
|
15314
15324
|
return singular;
|
|
@@ -15481,6 +15491,7 @@ exports.parseGermanNumber = parseGermanNumber;
|
|
|
15481
15491
|
exports.parseIsoDate = parseIsoDate;
|
|
15482
15492
|
exports.parseIsoDateTime = parseIsoDateTime;
|
|
15483
15493
|
exports.parseSecondlessDateTime = parseSecondlessDateTime;
|
|
15494
|
+
exports.pick = pick;
|
|
15484
15495
|
exports.pluralize = pluralize;
|
|
15485
15496
|
exports.pxToNumber = pxToNumber;
|
|
15486
15497
|
exports.round = round;
|