repeat-string
Repeat the given string n times. Fastest implementation for repeating a string.
Install with npm
npm i repeat-string --save
Install with bower
bower install repeat-string --save
Usage
Repeat the given string
the specified number
of times.
string
{String}: The string to repeatnumber
{Number}: The number of times to repeat the stringreturns
{String}: Repeated string
Example:
var repeat = require('repeat-string');
repeat('A', 5);
Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 06, 2014. To update, run npm i -g verb && verb
.