Use set for video app list

This commit is contained in:
Sam Carlton 2021-01-25 12:46:33 -06:00
parent bacbb825c6
commit 3a2326baa9
3 changed files with 19 additions and 22 deletions

View file

@ -29,7 +29,7 @@ class BuildLists {
// Where Eleventy Enpoints get stored
this.eleventyEndpointsSet = new Set()
this.allVideoAppsList = []
this.allVideoAppsList = new Set()
}
listsOptions = [
@ -102,15 +102,10 @@ class BuildLists {
]
getAllVideoAppsList = () => {
// return new Set([
// ...this.lists.apps,
// ...this.lists.games,
// ])
return [
...Array.from(this.lists.app),
...Array.from(this.lists.game),
]
return new Set([
...this.lists.app,
...this.lists.game,
])
}
saveToJson = async function ( content, path ) {