function getAnchors(scrollerDOM) {
  var _scrollerDOM$querySel;
  var anchors = [];
  var anchorsDOM = scrollerDOM === null || scrollerDOM === void 0 || (_scrollerDOM$querySel = scrollerDOM.querySelectorAll) === null || _scrollerDOM$querySel === void 0 ? void 0 : _scrollerDOM$querySel.call(scrollerDOM, '[data-indexbar-anchor]');
  for (var i = 0, anchorDOM; anchorDOM = anchorsDOM[i++];) {
    var anchorName = anchorDOM.getAttribute('data-indexbar-anchor');
    anchors.push(anchorName);
  }
  return anchors;
}
export default getAnchors;