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

Version Path
immosquare-cleaner-0.1.52 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.52 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/_to-index.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/_to-index.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/_to-index.js