'use strict';varMAX_SAFE_INTEGER=require('../helpers/maxSafeInteger');varToInteger=require('./ToInteger');module.exports=functionToLength(argument){varlen=ToInteger(argument);if(len<=0){return0;}// includes converting -0 to +0if(len>MAX_SAFE_INTEGER){returnMAX_SAFE_INTEGER;}returnlen;};