Sha256: 4cf51cc2204bfa311dcf4cf927ac9146989a98567d18ff6edff8894d2d177a0d
Contents?: true
Size: 223 Bytes
Versions: 66
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
66 entries across 30 versions & 8 rubygems