getValuesHash
The getValuesHash
function returns a hash for a Values
object, based on each Value
Id
and hash.
getValuesHash(valueHashes: {[valueId: Id]: Hash}): Hash
Example
This example gets the hash of a Values
object.
import {getValuesHash} from 'tinybase';
const valueHashes = {
meaningOfLife: 312420374, // hash of 42 and '03E3B------mmxrx'
};
console.log(getValuesHash(valueHashes));
// -> 4229195646
Since
v6.2.0