Skip to content

Commit

Permalink
Use array spread again
Browse files Browse the repository at this point in the history
Now that Node.js v4 is explicitly not supported, we can make use of
this feature again.

This reverts commit 634622d.
  • Loading branch information
mathiasbynens committed Mar 16, 2018
1 parent d90c110 commit b0f01f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli-flags-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0f01f7

Please sign in to comment.