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? | Attrs | — |
b? | Attrs | — |
Returns
boolean