Fetch and find releases for all requested seasoned media. Print all our fetches and then prints length of all releases with a matching title. TODO: Find relevant release types.

This commit is contained in:
2019-06-27 00:50:13 +02:00
parent 0421ba9e04
commit 678ff28c90
2 changed files with 83 additions and 0 deletions

12
utils.js Normal file
View File

@@ -0,0 +1,12 @@
const whoAmI = (result) => {
return `${result.title} (${result.year}) - ${result.status}`
}
const printAll = (media) => {
media.forEach(item => {
console.log(whoAmI(item))
})
}
module.exports = { whoAmI, printAll }