js: Convert _.indexOf(a, …) to a.indexOf(…).

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-07 20:48:46 -08:00
committed by Tim Abbott
parent 29dbf8ec77
commit 788c5afbcf
4 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ function add_pending_request(jqXHR) {
}
function remove_pending_request(jqXHR) {
const pending_request_index = _.indexOf(pending_requests, jqXHR);
const pending_request_index = pending_requests.indexOf(jqXHR);
if (pending_request_index !== -1) {
pending_requests.splice(pending_request_index, 1);
}