We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd44274 commit b0efa59Copy full SHA for b0efa59
index.js
@@ -194,13 +194,13 @@ function traverse(config) {
194
* @return {String[]}
195
*/
196
function removeDups(list) {
197
- const cache = {};
+ const cache = new Set();
198
const unique = [];
199
200
list.forEach(function(item) {
201
- if (!cache[item]) {
+ if (!cache.has(item)) {
202
unique.push(item);
203
- cache[item] = true;
+ cache.add(item);
204
}
205
});
206
0 commit comments