diff --git a/README.md b/README.md index 9158ad3..865b411 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,8 @@ Used for the systems of Positive/Negative rating, such as the videos on YouTube, the answers on StackOverflow, etc. In which, each of item can be voted as good or bad, like or dislike or something like that. -For example, here we calculate score of a blog post with 80 likes and 20 dislikes: +For example, here we calculate score of a blog post with 80 likes and 20 +dislikes: ```ts import { score } from "@ndaidong/average-rating"; @@ -128,7 +129,6 @@ Used for the systems of 5 rating levels, such as the applications on Google Play store, the books on Amazon, etc. In which, each of item can be voted as one of value in the range of 1 to 5 stars. - For example, here we calculate rating value of a product with: - 134,055 rates of 1 star diff --git a/mod.ts b/mod.ts index ac92d95..5c6c278 100644 --- a/mod.ts +++ b/mod.ts @@ -40,7 +40,6 @@ export const rate = (rating: number[] = []): number => { return score(p, n); }; - /** * Calculate average value for the systems of 5 rating levels *