About
This dependency reimplents the native String.prototype.repeat()
method. It is supported by all modern browsers and Node.js versions since about x years.
// Repeat a string
const str = "foo";
console.log(str.repeat(3)); // "foofoofoo"
trivial and outdated NPM packages
This dependency reimplents the native String.prototype.repeat()
method. It is supported by all modern browsers and Node.js versions since about x years.
// Repeat a string
const str = "foo";
console.log(str.repeat(3)); // "foofoofoo"