hash-choose
Exports a function that returns a function that maps a hash function to values, defaults to values(map[hash(string)]) if no key in map matches the hash and hash returns an integer.
installation:
npm install --save hash-choose
usage:
const hashChoose = ;const getValue = ;; // 'foo'; // 'bar'; // 'bar'; // values(map)[(700 + 100) % 3] => 'baz'; // values(map)[(899 + 100) % 3] => 'foo'