···333333 }
334334 }
335335}
336336-// We cannot use `instanceof` when nodes might be from different documents,
337337-// so we use type guards instead. This keeps TypeScript happy, while doing
338338-// the necessary checks at runtime.
339336function writableNode(node) {
340337 return node;
341338}
-4
src/morphlex.ts
···462462 }
463463}
464464465465-// We cannot use `instanceof` when nodes might be from different documents,
466466-// so we use type guards instead. This keeps TypeScript happy, while doing
467467-// the necessary checks at runtime.
468468-469465function writableNode<N extends Node>(node: ReadonlyNode<N>): N {
470466 return node as N;
471467}