UNPKG
react-sled
Version:
latest (2.0.4)
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.6
1.2.5
1.2.4
1.1.2
1.1.1
1.1.0
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
0.15.0
0.14.1
0.14.0
0.11.1
0.11.0
0.10.1
0.10.0
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.10
0.2.9
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
react-sled is a carousel made with react-spring.
react-sled.andreasfaust.com
AndreasFaust/react-sled
react-sled
/
dist
/
utils
/
clamp.d.ts
7 lines
(6 loc)
•
238 B
TypeScript
View Raw
1
2
3
4
5
6
7
/** * https://github.com/lodash/lodash/blob/master/clamp.js * Clamps `number` within the inclusive `lower` and `upper` bounds. */
declare
function
clamp
(
number
:
number
,
lower
:
number
,
upper
:
number
):
number
;
export
default
clamp;