Github user MikaelSoderstrom commented on the pull request:
https://github.com/apache/couchdb/pull/153#issuecomment-35491040
> really, I don't think that performance is matters in place of locating
user role in the list that almost always has 1-2-3 elements, max 10 elements.
Absolutely, but when you can use the standardized methods, I think you
should. :) Another solution would be to use
[underscore](http://underscorejs.org/), but I still prefer
Array.prototype.indexOf in this case (and use the shim in older browsers).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. To do so, please top-post your response.
If your project does not have this feature enabled and wishes so, or if the
feature is enabled but not working, please contact infrastructure at
[email protected] or file a JIRA ticket with INFRA.
---