Function: isSameBody()
@ghentcdh/annotated-text / isSameBody
Function: isSameBody()
isSameBody(
body1,body2):boolean
Defined in: libs/core/src/lib/adapter/annotation/w3c/utils/body.utils.ts:55
Parameters
body1
{ format: "text"; language?: string; source?: string; type: "TextualBody"; value: string; } | { purpose: "tagging"; type: "TextualBody"; value?: string; } | { id?: string; purpose: "describing"; source?: string; type: "SpecificResource"; value: any; } | { textType: string; type: "AnnotationType"; }
body2
{ format: "text"; language?: string; source?: string; type: "TextualBody"; value: string; } | { purpose: "tagging"; type: "TextualBody"; value?: string; } | { id?: string; purpose: "describing"; source?: string; type: "SpecificResource"; value: any; } | { textType: string; type: "AnnotationType"; }
Returns
boolean