Function: sameAuthor()
sameAuthor(
a,b):boolean
Defined in: src/lib/document/index.ts:59
Whether two authors are the same person: by DID when both have one, otherwise by handle when both have one, otherwise by name.
Parameters
a
b
Returns
boolean
Example
sameAuthor({ name: "Ada", handle: "ada.test" }, { name: "Ada L", handle: "ada.test" }); // true