mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
7
react-app/node_modules/core-js/modules/$.to-index.js
generated
vendored
Normal file
7
react-app/node_modules/core-js/modules/$.to-index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var toInteger = require('./$.to-integer')
|
||||
, max = Math.max
|
||||
, min = Math.min;
|
||||
module.exports = function(index, length){
|
||||
index = toInteger(index);
|
||||
return index < 0 ? max(index + length, 0) : min(index, length);
|
||||
};
|
Reference in New Issue
Block a user