'use strict';vartoInteger=require('../internals/to-integer');varrequireObjectCoercible=require('../internals/require-object-coercible');// `String.prototype.repeat` method implementation// https://tc39.github.io/ecma262/#sec-string.prototype.repeatmodule.exports=''.repeat||functionrepeat(count){varstr=String(requireObjectCoercible(this));varresult='';varn=toInteger(count);if(n<0||n==Infinity)throwRangeError('Wrong number of repetitions');for(;n>0;(n>>>=1)&&(str+=str))if(n&1)result+=str;returnresult;};