cleanup
This commit is contained in:
parent
ca74aaf4d1
commit
a32c3d9641
@ -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;
|
||||
}, "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user