JSFiddle - React, Tailwind, and code Playground

by MrTest

JavaScript

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

alert( "string to repeat\n".repeat( 4 ) );