getRowInTableHash
The getRowInTableHash
function returns a hash for a single Row
in a Table
, based on its Id
and hash (in turn produced from its Cells).
getRowInTableHash(
rowId: string,
rowHash: number,
): Hash
Example
This example gets the hash of a Row
and its Id
.
import {getRowInTableHash} from 'tinybase';
const rowId = 'fido';
const rowHash = 1810444343; // hash of its contents
console.log(getRowInTableHash(rowId, rowHash));
// -> 4262151841
Since
v6.2.0