TinyBase logoTinyBase β

getRowHash

The getRowHash function returns a hash for a single Row in a Table, based on each Cell Id and hash.

getRowHash(cellHashes: {[cellId: Id]: Hash}): Hash
TypeDescription
cellHashes{[cellId: Id]: Hash}

An object containing each Cell Id and its hash.

returnsHash

A hash of the Row.

Example

This example gets the hash of a Row.

import {getRowHash} from 'tinybase';

const cellHashes = {
  'species': 3002200796, // hash of 'dog' and '03E3B------mmxrx'
};

console.log(getRowHash(cellHashes));
// -> 1810444343

Since

v6.2.0