fn
attrsEq
testedStructural equality for attribute bags. `undefined` and `{}` are equivalent so `{ type: 'bold' }` equals `{ type: 'bold', attrs: {} }`.
Signature
ts
export function attrsEq(a?: Attrs, b?: Attrs): boolean{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
a? | Readonly<Record<string, AttrValue>> | undefined | — |
b? | Readonly<Record<string, AttrValue>> | undefined | — |
Returns
boolean