ut2 1.3.0 → 1.3.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/ut2.js CHANGED
@@ -281,7 +281,7 @@
281
281
  var numberIsSafeInteger = Number.isSafeInteger;
282
282
  var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
283
283
  var arrayAt = arrayProto.at;
284
- var VERSION = "1.3.0";
284
+ var VERSION = "1.3.1";
285
285
 
286
286
  function isFunction(value) {
287
287
  if (!isObject(value)) {
@@ -492,13 +492,15 @@
492
492
  }
493
493
 
494
494
  function compareAsc(value, other) {
495
- if (isSymbol(value) && isSymbol(other)) {
495
+ var valueIsSymbol = isSymbol(value);
496
+ var otherIsSymbol = isSymbol(other);
497
+ if (valueIsSymbol && otherIsSymbol) {
496
498
  return 0;
497
499
  }
498
- if (isSymbol(value)) {
500
+ if (valueIsSymbol) {
499
501
  return 1;
500
502
  }
501
- if (isSymbol(other)) {
503
+ if (otherIsSymbol) {
502
504
  return -1;
503
505
  }
504
506
  var valStr = toString(value);
@@ -512,13 +514,15 @@
512
514
  return 0;
513
515
  }
514
516
  function compareDesc(value, other) {
515
- if (isSymbol(value) && isSymbol(other)) {
517
+ var valueIsSymbol = isSymbol(value);
518
+ var otherIsSymbol = isSymbol(other);
519
+ if (valueIsSymbol && otherIsSymbol) {
516
520
  return 0;
517
521
  }
518
- if (isSymbol(value)) {
522
+ if (valueIsSymbol) {
519
523
  return -1;
520
524
  }
521
- if (isSymbol(other)) {
525
+ if (otherIsSymbol) {
522
526
  return 1;
523
527
  }
524
528
  var valStr = toString(value);
@@ -898,7 +902,7 @@
898
902
  map.forEach(function (value, key) {
899
903
  result.push([key, value]);
900
904
  });
901
- return orderBy(result, function (item) { return item[0]; });
905
+ return orderBy(result, [0, 1]);
902
906
  }
903
907
  function setToArray(set) {
904
908
  var result = [];