R
fn

attrsEq

tested

Structural 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

ParameterTypeDescription
a?Readonly<Record<string, AttrValue>> | undefined
b?Readonly<Record<string, AttrValue>> | undefined

Returns

boolean