Skip to content

Commit

Permalink
Use spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Sep 1, 2023
1 parent 7ebe744 commit c615801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function add_Notebook_execute_cell_and_select() {
let cell_index;
if (indices.length > 1) {
this.execute_cells(indices);
cell_index = Math.max.apply(Math, indices);
cell_index = Math.max(...indices);
} else {
let cell = this.get_selected_cell();
cell_index = this.find_cell_index(cell);
Expand Down

0 comments on commit c615801

Please sign in to comment.