@mll-lab/js-utils 2.15.3 → 2.17.0
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 +11 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/pick.d.ts +7 -0
- package/dist/pick.test.d.ts +1 -0
- package/dist/typeGuards.d.ts +1 -1
- package/dist/types.check.d.ts +28 -0
- package/dist/types.d.ts +27 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ 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';
|
|
11
12
|
export * from './string';
|
|
12
13
|
export * from './style';
|
|
13
|
-
export
|
|
14
|
-
export
|
|
14
|
+
export * from './typeGuards';
|
|
15
|
+
export * from './types';
|
package/dist/index.js
CHANGED
|
@@ -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;
|