function filterLinks( $, links ) {
	var out = [];
	links.each( onLink );
	return out;

	function onLink( i, el ) {
		var el = $( el );
		var txt = el.text();
		if ( RE_API_INCLUDE.test( txt ) ) {
			out.push( el.attr( 'href' ) );
		}
	}
}
/**
* Filters a list of link elements to find API candidates.
*
* @private
* @param {Object} $ - Cheerio selector
* @param {Array} links - list of elements
* @returns {Array<string>} list of candidate URLs
*/
Filters a list of link elements to find API candidates.
Filters a list of link elements to find API candidates .
function filterLinks( $, links ) {
	var out = [];
	links.each( onLink );
	return out;
	function onLink( i, el ) {
		var el = $( el );
		var txt = el.text();
		if ( RE_API_INCLUDE.test( txt ) ) {
			out.push( el.attr( 'href' ) );
		}
	}
}
function filterLinks ( $ , links ) { var out = [ ] ; links . each ( onLink ) ; return out ; function onLink ( i , el ) { var el = $ ( el ) ; var txt = el . text ( ) ; if ( RE_API_INCLUDE . test ( txt ) ) { out . push ( el . attr ( 'href' ) ) ; } } }
Filters a list of link elements to find API candidates.
Filters a list of link elements to find API candidates .