Function: withAuthor()
withAuthor(
authors,author):AssetAuthorDetails[]
Defined in: src/lib/document/index.ts:74
A document's authors with another added at the end, unless they're already one of them.
Parameters
authors
readonly AssetAuthorDetails[]
author
Returns
Example
withAuthor([{ name: "Ada" }], "Ann"); // [{ name: "Ada" }, { name: "Ann" }]