UNPKG

161 BJavaScriptView Raw
1export function validProgress(progress) {
2 if (!progress || progress < 0) {
3 return 0;
4 }
5
6 if (progress > 100) {
7 return 100;
8 }
9
10 return progress;
11}
\No newline at end of file