new BloomFilter(config)
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
config |
Object |
<optional> |
An object with following properies
|
- Source:
Methods
-
mightContain(obj) → {Boolean}
-
Parameters:
Name Type Description obj
* element to check for presence
- Source:
Returns:
true if all hashes of object are present in the Set, false otherwise
- Type
- Boolean
-
put(obj)
-
Parameters:
Name Type Description obj
* element to add to the filter The element being added is first "stringified" and then added to the filter. If the element is an string, it is used as is. If the element is a Number, it is converted to string. If the element is an Array, all elements of the array are recursively "stringified" and joined. If the element is an Object, it is checked if the object contains a function "stringify", if yes that function is invoked and the resulting string is used. For all other cases, default toString() is used.
- Source: