From 399966e83c7bba16790a31f2f576efd0932c87e3 Mon Sep 17 00:00:00 2001 From: Josiah Date: Thu, 19 Sep 2024 16:11:39 -0500 Subject: [PATCH] Clean up extra spread array 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) {