Skip to content

Commit

Permalink
Clean up extra spread array (#362)
Browse files Browse the repository at this point in the history
Map [returns a new array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map), so we can just use that result directly, instead of spreading it into a new array!
  • Loading branch information
spacetag authored Sep 20, 2024
1 parent 199a0c6 commit 383bee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
continue
}

let values = new Set([...pseudos.map((p) => p.value)])
let values = new Set(pseudos.map((p) => p.value))

// The pseudo elements are not the same
if (values.size > 1) {
Expand Down

0 comments on commit 383bee7

Please sign in to comment.