Const
Test if a snapshot is an instance of a schema. Mirrors instanceOf but only accepts values branded with SnapshotKindId. Use when the value is known to be a snapshot (e.g. from getSnapshot or useObject).
instanceOf
getSnapshot
useObject
const snapshot = Obj.getSnapshot(person);if (Obj.snapshotOf(Person, snapshot)) { // snapshot is Obj.Snapshot<Person>} Copy
const snapshot = Obj.getSnapshot(person);if (Obj.snapshotOf(Person, snapshot)) { // snapshot is Obj.Snapshot<Person>}
O(1) type-URI comparison with a typename fallback; no schema validation.
Test if a snapshot is an instance of a schema. Mirrors
instanceOfbut only accepts values branded with SnapshotKindId. Use when the value is known to be a snapshot (e.g. fromgetSnapshotoruseObject).