From 74e096bf94e9595f282690b96310c4b4a2fefc29 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 26 Sep 2021 14:32:04 -0400 Subject: [PATCH] lint: Use spread operator instead of `.apply()` --- src/static/js/Changeset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/Changeset.js b/src/static/js/Changeset.js index 4592638789a..a9e2a2f8ad9 100644 --- a/src/static/js/Changeset.js +++ b/src/static/js/Changeset.js @@ -572,7 +572,7 @@ exports.textLinesMutator = (lines) => { * @param {Array} s curSplice */ const lines_applySplice = (s) => { - lines.splice.apply(lines, s); + lines.splice(...s); }; const lines_toSource = () => lines.toSource();