99 A100: "#" + "ebffeb",
100 A200: "#" + "9dff9d",
101 A400: "#" + "14ff14",
102 A700: "#" + "00b100"103};
104
105const layerColors = {
98 50: "#" + "b1ffb1",
99 A100: "#" + "ebffeb",
100 A200: "#" + "9dff9d",
101 A400: "#" + "14ff14",102 A700: "#" + "00b100"
103};
104
97 100: "#" + "62ff62",
98 50: "#" + "b1ffb1",
99 A100: "#" + "ebffeb",
100 A200: "#" + "9dff9d",101 A400: "#" + "14ff14",
102 A700: "#" + "00b100"
103};
96 200: "#" + "3bff3b",
97 100: "#" + "62ff62",
98 50: "#" + "b1ffb1",
99 A100: "#" + "ebffeb",100 A200: "#" + "9dff9d",
101 A400: "#" + "14ff14",
102 A700: "#" + "00b100"
95 300: "#" + "00ff00",
96 200: "#" + "3bff3b",
97 100: "#" + "62ff62",
98 50: "#" + "b1ffb1", 99 A100: "#" + "ebffeb",
100 A200: "#" + "9dff9d",
101 A400: "#" + "14ff14",
It's unnecessary to concatenate two string literals together, such as:
let foo = "a" + "b";
This code is likely the result of refactoring where a variable was removed from the concatenation (such as "a" + b + "b"). In such a case, the concatenation isn't important and the code can be rewritten as:
let foo = "ab";
let a = `some` + `string`;
// these are the same as "10"
a = '1' + '0';
a = '1' + `0`;
a = `1` + '0';
a = `1` + `0`;
// when a non string is included
let c = a + b;
c = '1' + a;
let a = 1 + '1';
c = 1 - 2;
// when the string concatenation is multiline
c = "foo" + "bar";