UNPKG
@corti/dictation-web
Version:
ambient (0.7.0-ambient.7)
latest (0.6.0)
rc (0.6.1-rc.1)
test (0.0.0-test.8)
0.7.0-ambient.7
0.7.0-ambient.6
0.7.0-ambient.5
0.7.0-ambient.4
0.7.0-ambient.3
0.7.0-ambient.2
0.7.0-ambient.1
0.7.0-ambient
0.6.1-rc.1
0.6.0
0.6.0-rc.1
0.6.0-rc
0.5.2
0.5.2-rc.1
0.5.2-rc
0.5.1
0.5.0
0.5.0-rc.6
0.5.0-rc.5
0.5.0-rc.4
0.5.0-rc.3
0.5.0-rc.2
0.5.0-rc.1
0.5.0-rc
0.4.0
0.4.0-rc.2
0.4.0-rc.1
0.4.0-rc
0.3.0
0.3.0-rc
0.2.1
0.2.0
0.1.23-rc.4
0.1.23-rc.3
0.1.23-rc.2
0.1.23-rc.1
0.1.23-rc
0.1.22
0.1.22-rc
0.1.21
0.1.21-rc.5
0.1.21-rc.4
0.1.21-rc.3
0.1.21-rc.2
0.1.21-rc.1
0.1.21-rc
0.1.20
0.1.20-rc
0.1.19
0.1.19-rc.1
0.1.19-rc
0.1.18
0.1.17
0.1.16
0.1.16-rc.1
0.1.16-rc
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
0.0.0-test.571.2
0.0.0-test.571.1
0.0.0-test.571
0.0.0-test.562
0.0.0-test.8
0.0.0-test.7
0.0.0-rc.359
Web component for Corti Dictation
docs.corti.ai/stt/dictation-web
corticph/dictation-web
@corti/dictation-web
/
dist
/
utils
/
validation.js
7 lines
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
export
function
normalizeToRange
(
value, min =
0
, max =
1
) {
if
(
Number
.
isNaN
(value) || !
Number
.
isFinite
(value)) {
return
min; }
return
Math
.
max
(min,
Math
.
min
(max, value)); }
//# sourceMappingURL=validation.js.map