Underscore.js 1.7の使い方 Arrays編 sortedIndex

var r = document.getElementById("r");
r.innerHTML = _.sortedIndex([10, 20, 30], 25);
// => 2