repeat-str
v1.0.0
Published
Repeat a string or an array of strings
Downloads
21
Maintainers
Readme
⚙️ Installation
npm i repeat-str
CDN Links:
- https://cdn.jsdelivr.net/npm/[email protected]/repeat-str.js
- https://www.unpkg.com/[email protected]/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);