bloom-filter
                                
                                
                                
                                    bloom-filter copied to clipboard
                            
                            
                            
                        Doesn't work for numbers
Here's a minimal test to demonstrate.
const BloomFilter = require("bloom-filter")
const bf = BloomFilter.create(3, .01)
bf.insert(1).insert(2).insert(3)
console.log(bf.contains(1)) // expected: true; actual: true
console.log(bf.contains(4)) // expected: false; actual: true
                                    
                                    
                                    
                                
The hashing function and whatnot isn't really designed for raw numbers.
If you convert the numbers to strings then things will work as expected.