@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.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './error';
5
5
  export * from './file';
6
6
  export * from './germanNumber';
7
7
  export * from './number';
8
+ export * from './pick';
8
9
  export * from './pluralize';
9
10
  export * from './predicates';
10
11
  export * from './promise';
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(Object.assign({}, localeOptions), { maximumFractionDigits: 6 }));
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;