ut2 1.2.0 → 1.2.2
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 +7 -13
- package/dist/ut2.js.map +1 -1
- package/dist/ut2.min.js +1 -1
- package/dist/ut2.min.js.map +1 -1
- package/es/eq.js +3 -3
- package/es/internals/helpers.js +1 -1
- package/es/merge.js +1 -3
- package/es/orderBy.js +2 -6
- package/lib/eq.js +3 -3
- package/lib/internals/helpers.js +1 -1
- package/lib/merge.js +1 -3
- package/lib/orderBy.js +2 -6
- package/package.json +1 -1
- package/types/countBy.d.ts +1 -1
- package/types/eq.d.ts +1 -1
- package/types/groupBy.d.ts +1 -1
- package/types/internals/decimalAdjust.d.ts +3 -3
- package/types/internals/isType.d.ts +1 -1
- package/types/internals/splitCaseWords.d.ts +1 -1
- package/types/kebabCase.d.ts +1 -1
- package/types/keyBy.d.ts +1 -1
- package/types/lowerCase.d.ts +1 -1
- package/types/merge.d.ts +2 -2
- package/types/omit.d.ts +1 -1
- package/types/orderBy.d.ts +2 -2
- package/types/partition.d.ts +1 -1
- package/types/pick.d.ts +1 -1
- package/types/snakeCase.d.ts +1 -1
- package/types/uniq.d.ts +1 -1
- package/types/upperCase.d.ts +1 -1
- package/types/words.d.ts +1 -1
package/dist/ut2.js
CHANGED
|
@@ -200,10 +200,10 @@
|
|
|
200
200
|
|
|
201
201
|
function eq(value, other, strictCheck) {
|
|
202
202
|
if (strictCheck === void 0) { strictCheck = false; }
|
|
203
|
-
if (
|
|
204
|
-
return
|
|
203
|
+
if (value === other) {
|
|
204
|
+
return strictCheck ? value !== 0 || 1 / value === 1 / other : true;
|
|
205
205
|
}
|
|
206
|
-
return value
|
|
206
|
+
return value !== value && other !== other;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
function createIteratee(iteratee) {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
var numberIsSafeInteger = Number.isSafeInteger;
|
|
268
268
|
var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
269
269
|
var arrayAt = Array.prototype.at;
|
|
270
|
-
var VERSION = "1.2.
|
|
270
|
+
var VERSION = "1.2.2";
|
|
271
271
|
|
|
272
272
|
function isFunction(value) {
|
|
273
273
|
if (!isObject(value)) {
|
|
@@ -506,9 +506,7 @@
|
|
|
506
506
|
orders = (isArray(orders) ? orders : orders !== undefined ? [orders] : []);
|
|
507
507
|
if (isArray(collection)) {
|
|
508
508
|
collection.forEach(function (item, index) {
|
|
509
|
-
var criteria = iteratees.map(function (iteratee) {
|
|
510
|
-
return createIteratee(iteratee)(item);
|
|
511
|
-
});
|
|
509
|
+
var criteria = iteratees.map(function (iteratee) { return createIteratee(iteratee)(item); });
|
|
512
510
|
result.push({
|
|
513
511
|
criteria: criteria,
|
|
514
512
|
index: index,
|
|
@@ -516,9 +514,7 @@
|
|
|
516
514
|
});
|
|
517
515
|
});
|
|
518
516
|
}
|
|
519
|
-
return result
|
|
520
|
-
.sort(function (a, b) { return compareMultiple(a, b, orders); })
|
|
521
|
-
.map(function (item) { return item.value; });
|
|
517
|
+
return result.sort(function (a, b) { return compareMultiple(a, b, orders); }).map(function (item) { return item.value; });
|
|
522
518
|
}
|
|
523
519
|
|
|
524
520
|
function partition(collection, predicate) {
|
|
@@ -913,9 +909,7 @@
|
|
|
913
909
|
var keys = allKeysIn(source);
|
|
914
910
|
keys.forEach(function (key) {
|
|
915
911
|
var srcValue = source[key];
|
|
916
|
-
var newValue = typeof customizer === 'function'
|
|
917
|
-
? customizer(obj[key], srcValue, key, obj, source)
|
|
918
|
-
: undefined;
|
|
912
|
+
var newValue = typeof customizer === 'function' ? customizer(obj[key], srcValue, key, obj, source) : undefined;
|
|
919
913
|
if (newValue === undefined) {
|
|
920
914
|
newValue = srcValue;
|
|
921
915
|
}
|