"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isLinkAtPos = isLinkAtPos;
function isLinkAtPos(pos) {
  return function (state) {
    var node = state.doc.nodeAt(pos);
    return !!node && !!state.schema.marks.link.isInSet(node.marks);
  };
}