Skip to content

Commit

Permalink
Merge pull request #17718 from Snuffleupagus/hexNumbers-tweak
Browse files Browse the repository at this point in the history
Tweak how the `hexNumbers` Array, used by `Util.makeHexColor`, is built
  • Loading branch information
Snuffleupagus authored Feb 23, 2024
2 parents b8b8f1a + 49a2aff commit 346efe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
);

Expand Down

0 comments on commit 346efe9

Please sign in to comment.