Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 309 Bytes

Repeat.md

File metadata and controls

19 lines (13 loc) · 309 Bytes

Repeat

Example#1

import JStr from "@akcybex/jstr";

const str = JStr.of("he").repeat(5).toString();
console.log(str); // Outputs: 'hehehehehe'

Example#2

import JStr from "@akcybex/jstr";

const str = JStr.repeat("a", 5);
console.log(str); // Outputs: 'aaaaa'