refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
12
home/ags/node_modules/es-abstract/2015/ToLength.js
generated
vendored
12
home/ags/node_modules/es-abstract/2015/ToLength.js
generated
vendored
|
|
@ -1,12 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
|
||||
|
||||
var ToInteger = require('./ToInteger');
|
||||
|
||||
module.exports = function ToLength(argument) {
|
||||
var len = ToInteger(argument);
|
||||
if (len <= 0) { return 0; } // includes converting -0 to +0
|
||||
if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; }
|
||||
return len;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue