ut2 1.11.4 → 1.11.6
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/ut2.js +5 -5
- package/dist/ut2.js.map +1 -1
- package/dist/ut2.min.js +1 -1
- package/dist/ut2.min.js.map +1 -1
- package/es/internals/helpers.js +1 -1
- package/es/omit.js +2 -2
- package/es/pick.js +2 -2
- package/lib/internals/helpers.js +1 -1
- package/lib/omit.js +2 -2
- package/lib/pick.js +2 -2
- package/package.json +1 -1
- package/types/omit.d.ts +2 -7
- package/types/pick.d.ts +2 -7
package/dist/ut2.js
CHANGED
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
return value == null || value !== value ? defaultValue : value;
|
|
607
607
|
};
|
|
608
608
|
|
|
609
|
-
var VERSION = "1.11.
|
|
609
|
+
var VERSION = "1.11.6";
|
|
610
610
|
var isBrowser = typeof window !== stringUndefined && isObjectLike(window) && typeof document !== stringUndefined && isObjectLike(document) && window.document === document;
|
|
611
611
|
var supportedArgumentsType = getTag((function () { return arguments; })()) === argumentsTag;
|
|
612
612
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
@@ -1516,7 +1516,7 @@
|
|
|
1516
1516
|
return isArray(value) ? value : [value];
|
|
1517
1517
|
}
|
|
1518
1518
|
|
|
1519
|
-
|
|
1519
|
+
function omit(object, fields) {
|
|
1520
1520
|
if (fields === void 0) { fields = []; }
|
|
1521
1521
|
var keys = allKeysIn(object);
|
|
1522
1522
|
var fieldArr = castArray(fields);
|
|
@@ -1527,7 +1527,7 @@
|
|
|
1527
1527
|
}
|
|
1528
1528
|
});
|
|
1529
1529
|
return result;
|
|
1530
|
-
}
|
|
1530
|
+
}
|
|
1531
1531
|
|
|
1532
1532
|
function pickBy(object, predicate) {
|
|
1533
1533
|
if (predicate === void 0) { predicate = stubFlase; }
|
|
@@ -1546,7 +1546,7 @@
|
|
|
1546
1546
|
return pickBy(object, negate(predicate));
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
|
-
|
|
1549
|
+
function pick(object, fields) {
|
|
1550
1550
|
if (fields === void 0) { fields = []; }
|
|
1551
1551
|
var result = {};
|
|
1552
1552
|
if (!isObject(object)) {
|
|
@@ -1559,7 +1559,7 @@
|
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
1561
|
return result;
|
|
1562
|
-
}
|
|
1562
|
+
}
|
|
1563
1563
|
|
|
1564
1564
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
1565
1565
|
function words(string, pattern) {
|