Variable inserterConst

inserter: {
    append(node, target): void;
    before(node, target): void;
} = ...

Default inserters for use with insert

Type declaration

  • append:function
    • Append the node to the target using appendChild

      Parameters

      • node: Node
      • target: Node

      Returns void

  • before:function
    • Inserts the node before the target using insertBefore

      Parameters

      • node: Node
      • target: Node

      Returns void