Merge pull request #17718 from Snuffleupagus/hexNumbers-tweak
Tweak how the `hexNumbers` Array, used by `Util.makeHexColor`, is built
This commit is contained in:
commit
346efe919a
@ -641,7 +641,7 @@ class FeatureTest {
|
||||
}
|
||||
}
|
||||
|
||||
const hexNumbers = [...Array(256).keys()].map(n =>
|
||||
const hexNumbers = Array.from(Array(256).keys(), n =>
|
||||
n.toString(16).padStart(2, "0")
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user