From 383bee7004349a4877c619dafa9aff1854dac601 Mon Sep 17 00:00:00 2001 From: Josiah Date: Fri, 20 Sep 2024 17:12:43 -0500 Subject: [PATCH] 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! --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 085f72e..5350890 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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) {