Sha256: bb52139212ffa22c66c4ec140c499e387c518e02312081b77968d6e70eb2e95d
Contents?: true
Size: 339 Bytes
Versions: 66
Compression:
Stored size: 339 Bytes
Contents
// https://tc39.github.io/ecma262/#sec-toindex var toInteger = require('./_to-integer'); var toLength = require('./_to-length'); module.exports = function (it) { if (it === undefined) return 0; var number = toInteger(it); var length = toLength(number); if (number !== length) throw RangeError('Wrong length!'); return length; };
Version data entries
66 entries across 30 versions & 8 rubygems