Merge branch 'sprint-3' into separate-tag-storage

This commit is contained in:
Kara Hoagland
2022-11-27 20:34:12 -08:00
8 changed files with 254 additions and 32 deletions

View File

@@ -128,4 +128,22 @@ export function getAllReviewsFromStorage() {
reviews.push(currReview);
}
return reviews;
}
/**
* Returns the top n reviews by ID. If there are less than n reviews, returns the most possible.
* @param {number} n number of reviews to return
* @returns {Object} list of n reviews that are the top rated
*/
export function getTopReviewsFromStorage(n) {
}
/**
* Returns all reviews which contain the same tag specified.
* @param {string} tag to filter by
* @returns {Object} list of reviews that all contain the specified tag
*/
export function getReviewsByTag(tag) {
}