Skip to content

Commit

Permalink
Fix fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Jun 23, 2024
1 parent 2d914bd commit b1b0072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const rate = (rating: number[] = []): number => {
return score(p, n);
};


/**
* Calculate average value for the systems of 5 rating levels
*
Expand Down

0 comments on commit b1b0072

Please sign in to comment.