Evalkeeper
    Preparing search index...

    Function mergeReviews

    • A suite's reviews with one reviewer's replaced by a new set: everyone else's stay as they were, and theirs (same name and level) are swapped for next, so signing a sheet again never duplicates a review.

      Parameters

      • existing: readonly ShippedReview[]

        The reviews the suite ships now.

      • next: readonly ShippedReview[]

        The reviews from the newly signed sheet.

      • reviewer: Pick<Reviewer, "level" | "by">

        Whose reviews next replaces.

      Returns ShippedReview[]