js: Convert Object.assign({…}, …) to spread syntax.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-12-21 15:37:36 -08:00
parent 160cc5120a
commit 0c4239e387
7 changed files with 42 additions and 78 deletions

View File

@@ -22,7 +22,7 @@ zrequire("hash_util");
const emoji = zrequire("emoji", "shared/js/emoji");
const pygments_data = zrequire("pygments_data", "generated/pygments_data.json");
const actual_pygments_data = Object.assign({}, pygments_data);
const actual_pygments_data = {...pygments_data};
const ct = zrequire("composebox_typeahead");
const th = zrequire("typeahead_helper");
const {LazySet} = zrequire("lazy_set");