MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / hasUnsavedChanges

Method hasUnsavedChanges

lib/src/commit.ts:58–62  ·  view source on GitHub ↗

Returns true if the CommitBuilder has non-empty changes (set, remove, destroy)

()

Source from the content-addressed store, hash-verified

56
57 /** Returns true if the CommitBuilder has non-empty changes (set, remove, destroy) */
58 hasUnsavedChanges(): boolean {
59 return (
60 Object.keys(this.set).length > 0 || this.destroy || this.remove.length > 0
61 );
62 }
63
64 /**
65 * Creates a clone of the CommitBuilder. This is required, because I want to

Callers 2

ShareRouteFunction · 0.80
DataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected