fn
withAttrs
testedReturn a copy of `node` with new attrs.
Signature
ts
export function withAttrs(node: Node, attrs: Attrs): Node{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
node | Node | — |
attrs | Readonly<Record<string, import("./attrs").AttrValue>> | — |
Returns
Node