Skip to content

Commit 383bee7

Browse files
authored
Clean up extra spread array (#362)
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!
1 parent 199a0c6 commit 383bee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
continue
4343
}
4444

45-
let values = new Set([...pseudos.map((p) => p.value)])
45+
let values = new Set(pseudos.map((p) => p.value))
4646

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

0 commit comments

Comments
 (0)