I'm quite sure there are better solutions but I got this one working for me:
function myFunction() {
var sheet = SpreadsheetApp.getActiveSheet();
var data = sheet.getRange(2, 1, sheet.getLastRow() - 1)
.getValues()
.map(function(d){ return d[0]; });
var min_value = Math.min.apply(null, data);
var idx = data.indexOf(min_value);
while(idx > -1) {
sheet.getRange(idx + 2, 1).setFontWeight('bold');
idx = data.indexOf(min_value, idx + 1);
}
}
Same applies to Math.max.apply
or other searches. Sadly this solution isn't quite fast especially when it comes to handle more data. I've tested it with 22 rows of random numbers and it was acceptable.