Underscore.js 1.7の使い方 Arrays編 indexOf

var r = document.getElementById("r");
r.innerHTML = _.indexOf(['a', 'b', 'c', 'b'], 'b');
// => 1