Skip to main content
Module

x/automerge/index.ts>getObjectId

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
function getObjectId
import { getObjectId } from "https://deno.land/x/automerge@2.2.0/index.ts";

Return the object ID of an arbitrary javascript value

This is useful to determine if something is actually an automerge document, if doc is not an automerge document this will return null.

Parameters

doc: any
optional
prop: Prop