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 CHANGED
@@ -200,10 +200,10 @@
200
200
 
201
201
  function eq(value, other, strictCheck) {
202
202
  if (strictCheck === void 0) { strictCheck = false; }
203
- if (strictCheck) {
204
- return Object.is(value, other);
203
+ if (value === other) {
204
+ return strictCheck ? value !== 0 || 1 / value === 1 / other : true;
205
205
  }
206
- return value === other || (value !== value && other !== other);
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.0";
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
  }