'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function node_ancestors() {
  var node = this, nodes = [node];
  while (node = node.parent) {
    nodes.push(node);
  }
  return nodes;
}

exports.default = node_ancestors;
