lib/search.js
function isClosingHeading(node, depth) {
  return depth && node && node.type === HEADING && node.depth <= depth
}
function isClosingHeading(node, depth) {
  return depth && node && node.type === HEADING && node.depth <= depth
}
function isClosingHeading ( node , depth ) { return depth && node && node . type === HEADING && node . depth <= depth }
Check if `node` is the next heading.
Check if node is the next heading .