1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 15:05:45 +01:00

Remove remaining comprehensions.

This commit is contained in:
Doug Kearns
2016-01-29 23:26:05 +11:00
parent b9849df565
commit c9c9cea6d0
5 changed files with 32 additions and 19 deletions

View File

@@ -548,7 +548,11 @@ var Option = Class("Option", {
},
stringmap: function (vals) {
return [Option.quote(k, /:/) + ":" + Option.quote(v, /:/) for ([k, v] of iter(vals))].join(",");
return Array.from(iter(vals),
([k, v]) => Option.quote(k, /:/) +
":" +
Option.quote(v, /:/))
.join(",");
},
regexplist: vals => vals.join(","),