MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getStars

Function getStars

src/dialogs/rateBox.js:79–88  ·  view source on GitHub ↗

* * @param {number} num

(num)

Source from the content-addressed store, hash-verified

77 * @param {number} num
78 */
79function getStars(num) {
80 let star = num;
81 let noStar = 5 - num;
82 let str = "";
83
84 while (star--) str += "★";
85 while (noStar--) str += "☆";
86
87 return str;
88}
89
90export default rateBox;

Callers 1

onInteractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected