Sha256: 4cf51cc2204bfa311dcf4cf927ac9146989a98567d18ff6edff8894d2d177a0d

Contents?: true

Size: 223 Bytes

Versions: 82

Compression:

Stored size: 223 Bytes

Contents

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);
};

Version data entries

82 entries across 38 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.40 node_modules/core-js/modules/_to-absolute-index.js
immosquare-cleaner-0.1.40 node_modules/core-js/library/modules/_to-absolute-index.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/modules/_to-absolute-index.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/modules/_to-absolute-index.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/library/modules/_to-absolute-index.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/modules/_to-absolute-index.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/modules/_to-absolute-index.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/library/modules/_to-absolute-index.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/modules/_to-absolute-index.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/library/modules/_to-absolute-index.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/modules/_to-absolute-index.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/library/modules/_to-absolute-index.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/modules/_to-absolute-index.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/library/modules/_to-absolute-index.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/modules/_to-absolute-index.js
optimacms-0.4.3 spec/dummy/node_modules/core-js/library/modules/_to-absolute-index.js
optimacms-0.4.3 spec/dummy/node_modules/core-js/modules/_to-absolute-index.js