repeat-str.js
Repeat a string or an array of strings
⚙️ Installation
npm i repeat-str
CDN Links:
- https://cdn.jsdelivr.net/npm/repeat-str@1.0.0/repeat-str.js
- https://www.unpkg.com/repeat-str@1.0.0/repeat-str.js
📖 Usage
※ Import
// ES6
import repeatStr from "repeat-str";
// commonjs
const repeatStr = require("repeat-str");
※ Repeat
// ▸ string
const repeated = repeatStr(30, "hello");
console.log(repeated);
// ▸ array
const array_repeated = repeatStr(30, ["hello", "hi"]);
console.log(array_repeated);