function renderResults(results) {
    if (!results.length) {
        return;
    }

    // Only show the ten first results
    results.slice(0, 10).forEach(function(result) {
        var $result = $("<li>");
        $result.append($("<a>", {
            href: result.href,
            text: "» " + result.title
        }));
        $results.append($result);
    });
}
/**
 * Display the 10 first results
 *
 * @param  {Array} results to display
 */
Display the 10 first results
@param  {Array} results to display
Display the 10 first results @param { Array } results to display
function renderResults(results) {
    if (!results.length) {
        return;
    }
    results.slice(0, 10).forEach(function(result) {
        var $result = $("<li>");
        $result.append($("<a>", {
            href: result.href,
            text: "» " + result.title
        }));
        $results.append($result);
    });
}
function renderResults ( results ) { if ( ! results . length ) { return ; } results . slice ( 0 , 10 ) . forEach ( function ( result ) { var $result = $ ( "<li>" ) ; $result . append ( $ ( "<a>" , { href : result . href , text : "» "  esult. t itle } ) ) ; $results . append ( $result ) ; } ) ; }
Display the 10 first results
 @param  {Array} results to display
Display the 10 first results @param { Array } results to display
// Only show the ten first results