TinyBase logoTinyBase β

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
TypeDescription
rowIdstring

The Id of the Row.

rowHashnumber

The hash of the Row.

returnsHash

A hash of the Row based on its content and Id.

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