@aggregion/binary-filter
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -6,3 +6,3 @@ "use strict"; | ||
static from(array) { | ||
const max = array.reduce((a, b) => Math.max(a, b), -Infinity); | ||
const max = array.reduce((a, b) => Math.max(a, b), 0); | ||
const filter = new BinaryFilter(max); | ||
@@ -9,0 +9,0 @@ array.forEach((v) => filter.add(v)); |
{ | ||
"name": "@aggregion/binary-filter", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/binaryFilter.js", |
@@ -7,3 +7,3 @@ export class BinaryFilter { | ||
static from(array: number[]) { | ||
const max = array.reduce((a, b) => Math.max(a, b), -Infinity); | ||
const max = array.reduce((a, b) => Math.max(a, b), 0); | ||
const filter = new BinaryFilter(max); | ||
@@ -10,0 +10,0 @@ array.forEach((v) => filter.add(v)); |
Sorry, the diff of this file is not supported yet
15873