UNPKG
react-saasify-chrisvxd
Version:
latest (1.9.0)
1.9.0
1.7.15
1.7.14
React components for Saasify web clients.
github.com/saasify-sh/saasify
saasify-sh/saasify
react-saasify-chrisvxd
/
example
/
node_modules
/
core-js
/
modules
/
_to-absolute-index.js
8 lines
(7 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var toInteger =
require
(
'./_to-integer'
); var
max
= Math.
max
; var
min
= Math.
min
;
module
.exports =
function
(index, length)
{ index = toInteger(index);
return
index <
0
?
max
(index + length,
0
) :
min
(index, length); };