"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.removeNodeChildren = void 0;
var _slate = require("slate");
const removeNodeChildren = (editor, path, options) => {
  const nodeChildren = _slate.Node.children(editor, path, {
    reverse: true
  });
  for (const [, childPath] of nodeChildren) {
    _slate.Transforms.removeNodes(editor, {
      ...options,
      at: childPath
    });
  }
};
exports.removeNodeChildren = removeNodeChildren;