gis-common 5.1.27 → 5.1.28

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.
@@ -951,7 +951,7 @@ myArray.prototype.min = function(f = (d) => d) {
951
951
  return this.asc(f)[0];
952
952
  };
953
953
  myArray.prototype.sum = function(f = (d) => d) {
954
- return this.length === 1 ? f(this[0]) : this.length > 1 ? this.reduce((prev = 0, curr = 0) => f(prev) + f(curr)) : 0;
954
+ return this.length === 1 ? f(this[0]) : this.length > 1 ? this.reduce((prev = 0, curr = 0) => prev + f(curr), 0) : 0;
955
955
  };
956
956
  myArray.prototype.avg = function(f = (d) => d) {
957
957
  return this.length ? this.sum(f) / this.length : 0;
@@ -18129,6 +18129,7 @@ const _Storage = class _Storage {
18129
18129
  } else if (typeof value === "object" && typeof value.data !== "undefined") {
18130
18130
  const expires = value.expires;
18131
18131
  if (expires && Date.now() > expires) {
18132
+ localStorage.removeItem(query_key);
18132
18133
  return missing;
18133
18134
  }
18134
18135
  return value.data;
@@ -18158,6 +18159,7 @@ const _Storage = class _Storage {
18158
18159
  } else if (typeof value === "object" && typeof value.data !== "undefined") {
18159
18160
  const expires = value.expires;
18160
18161
  if (expires && Date.now() > expires) {
18162
+ sessionStorage.removeItem(query_key);
18161
18163
  return missing;
18162
18164
  }
18163
18165
  return value.data;