title: Underscore.js equivalent of jQuery's $.inArray()?
body: <p>Does underscore.js have an equivalent of the jQuery function <code>$.inArray</code>? I am trying to find duplicates in an object and return only unique values back. I have done this in jQuery but would like to use underscore JS.</p>
  
  <pre><code>var result = [];
  $.each(formValuesObj.fields.list, function (i, e) {
      if ($.inArray(e, result) == -1) 
          result.push(e);
  });
  
  formValuesObj.fields.list = result;
  
  $.each(formValuesObject, function () {
      if (this.fieldSelectId == formValues3.fieldSelectId) {
          contains = true;
      }
  });
  </code></pre>