"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.atTheEndOfDoc = atTheEndOfDoc;
function atTheEndOfDoc(state) {
  var selection = state.selection,
    doc = state.doc;
  return doc.nodeSize - selection.$to.pos - 2 === selection.$to.depth;
}