From b0f01f703148438ddcaf5681072ceb9ee3971c37 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 17 Mar 2018 02:01:40 +0400 Subject: [PATCH] Use array spread again Now that Node.js v4 is explicitly not supported, we can make use of this feature again. This reverts commit 634622de166f3c2ea36e64a86691e93e8d039e0e. --- src/cli-flags-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli-flags-helper.js b/src/cli-flags-helper.js index 5ecac66d..e687e743 100644 --- a/src/cli-flags-helper.js +++ b/src/cli-flags-helper.js @@ -32,7 +32,7 @@ module.exports = { } else if (typeof ONLY != "undefined" && targetList.has(ONLY)) { return [ONLY]; } else { - return Array.from(targetList); + return [...targetList]; } }, targetList: targetList