@fileverse-dev/formulajs 4.4.20-mod-4 → 4.4.20-mod-5

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.20-mod-4 */
1
+ /* @fileverse-dev/formulajs v4.4.20-mod-5 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -5064,7 +5064,6 @@ function _typeof(o) {
5064
5064
  isCol: isCol
5065
5065
  });
5066
5066
  var foundIndex = -1;
5067
- var isSingleResultRow = result_array.length === 1;
5068
5067
  switch (match_mode) {
5069
5068
  case 0:
5070
5069
  foundIndex = findExactMatch(search_key, lookup_array, search_mode);
@@ -5085,24 +5084,13 @@ function _typeof(o) {
5085
5084
  if (foundIndex === -1) {
5086
5085
  return missing_value;
5087
5086
  }
5088
- if (isSingleResultRow) {
5089
- var resultRow = result_array[0];
5090
- if (isCol) {
5091
- return resultRow.map((function(val) {
5092
- return [ val ];
5093
- }));
5094
- } else {
5095
- return resultRow;
5096
- }
5087
+ if (isCol) {
5088
+ var columnValues = result_array.map((function(row) {
5089
+ return row[foundIndex];
5090
+ }));
5091
+ return columnValues;
5097
5092
  } else {
5098
- if (isCol) {
5099
- var columnValues = result_array.map((function(row) {
5100
- return row[foundIndex];
5101
- }));
5102
- return columnValues;
5103
- } else {
5104
- return result_array[foundIndex];
5105
- }
5093
+ return result_array[foundIndex];
5106
5094
  }
5107
5095
  }
5108
5096
  function findExactMatch(search_key, lookup_array, search_mode) {