JSFiddle - React, Tailwind, and code Playground

by David Thomas

JavaScript

String.prototype.repeat = function (len) {
    return (new Array(len + 1)).join(this);
}

console.log('-/'.repeat(5));