'use strict';

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

function node_leaves() {
  var leaves = [];
  this.eachBefore(function(node) {
    if (!node.children) {
      leaves.push(node);
    }
  });
  return leaves;
}

exports.default = node_leaves;
