js: Convert _.any(a, …), _.some(a, …) to a.some(…).

And convert the corresponding function expressions to arrow style
while we’re here.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-07 19:08:04 -08:00
committed by Tim Abbott
parent 2285ee922e
commit 70ff164f89
15 changed files with 32 additions and 66 deletions

View File

@@ -38,7 +38,7 @@ const tictactoe_data_holder = function () {
return square_values[i];
}
return _.any(lines, line_won) || _.all(board, filled);
return lines.some(line_won) || _.all(board, filled);
}
self.get_widget_data = function () {