I'm not sure if this is actually possible thus I ask here. Does anyone knows of an algorithm that would allow something like this?

```
const values = ['a', 'b', 'c', 'd'];
const hash = createHash(values); // => xjaks14sdffdghj23h4kjhgd9f81nkjrsdfg9aiojd
hash.includes('b'); // => true
hash.includes('v'); // => false

```

What this snippet does, is it first creates some sort of `hash` from a list of values, then checks if the certain value belongs to that hash.