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

@@ -12,7 +12,7 @@ function is_image_format(file) {
if (!type) {
return false;
}
return _.indexOf(supported_types, type) >= 0;
return supported_types.indexOf(type) >= 0;
}
exports.build_widget = function (