"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.hasDocAsParent = hasDocAsParent;
// Checks to see if the parent node is the document, ie not contained within another entity
function hasDocAsParent($anchor) {
  return $anchor.depth === 1;
}