Add scripts

This commit is contained in:
Peng-YM
2020-09-04 18:30:38 +08:00
parent 9acb381b24
commit fc734ac268
4 changed files with 79 additions and 54 deletions

View File

@@ -0,0 +1,8 @@
function operator(proxies) {
const counter = {};
return proxies.map(p => {
if (!counter[p.name]) counter[p.name] = 0;
p.name = p.name + " " + (++counter[p.name]).toString();
return p;
});
}