mrozio13pl / n-string

Probably the fastest way to repeat a string.

Home Page:https://npm.im/n-string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://npm.im/n-string

License:MIT License


Languages

Language:JavaScript 100.0%