mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 03:44:10 +01:00
Get rid of more deprecated Set method calls.
This commit is contained in:
@@ -677,8 +677,8 @@ var Option = Class("Option", {
|
||||
values = Array.concat(values);
|
||||
|
||||
function uniq(ary) {
|
||||
let seen = {};
|
||||
return ary.filter(elem => !Set.add(seen, elem));
|
||||
let seen = RealSet();
|
||||
return ary.filter(elem => !seen.add(elem));
|
||||
}
|
||||
|
||||
switch (operator) {
|
||||
|
||||
Reference in New Issue
Block a user