This commit is contained in:
Bruno Windels 2020-12-02 11:06:44 +01:00
parent ca74aaf4d1
commit a32c3d9641
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ limitations under the License.
import {TemplateView} from "../utils/TemplateView.js";
function formatPlatforms(platforms) {
return platforms.reduce((str, p, i) => {
return platforms.reduce((str, p, i, all) => {
const first = i === 0;
const last = i === platforms.length - 1;
const last = i === all.length - 1;
return str + (first ? "" : last ? " & " : ", ") + p;
}, "");
}