UNPKG

274 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.validProgress = validProgress;
7
8function validProgress(progress) {
9 if (!progress || progress < 0) {
10 return 0;
11 }
12
13 if (progress > 100) {
14 return 100;
15 }
16
17 return progress;
18}
\No newline at end of file