styledoc.js
function getUniqueSectionAnchor(anchor) {

            var base_anchor = anchor,
                numeric_suffix = 0;

            while (used_section_anchors.indexOf(anchor) !== -1) {
                anchor = base_anchor + "_" + ++numeric_suffix;
            }

            used_section_anchors.push(anchor);
            return anchor;
        }
function getUniqueSectionAnchor(anchor) {

            var base_anchor = anchor,
                numeric_suffix = 0;

            while (used_section_anchors.indexOf(anchor) !== -1) {
                anchor = base_anchor + "_" + ++numeric_suffix;
            }

            used_section_anchors.push(anchor);
            return anchor;
        }
function getUniqueSectionAnchor ( anchor ) { var base_anchor = anchor , numeric_suffix = 0 ; while ( used_section_anchors . indexOf ( anchor ) !== - 1 ) { anchor = base_anchor + "_" + ++ numeric_suffix ; } used_section_anchors . push ( anchor ) ; return anchor ; }
Assures section anchor to be unique
@param {string} anchor
@returns {string}
@todo dry?
Assures section anchor to be unique