Skip to content

mrozio13pl/n-string

Repository files navigation

n-string

Repeat a string with the use of cache.

Usage

repeat(string, number)

const repeat = require('n-string');

repeat('a', 5); // <= 'aaaaa'
  • string {String} - a string to repeat
  • number {Number} - number of times to repeat a string

License

MIT

About

Probably the fastest way to repeat a string.

Resources

License

Stars

Watchers

Forks