Sign in
apache
/
nifi-fds
/
954e729fbbf531ccabbbc6d1c1c2ea6135b371eb
/
.
/
node_modules
/
underscore.string
/
helper
/
strRepeat.js
blob: b60d8760f9223929f5e7491feefc7bc4b6e924f2 [
file
] [
log
] [
blame
]
module
.
exports
=
function
strRepeat
(
str
,
qty
){
if
(
qty
<
1
)
return
''
;
var
result
=
''
;
while
(
qty
>
0
)
{
if
(
qty
&
1
)
result
+=
str
;
qty
>>=
1
,
str
+=
str
;
}
return
result
;
};