JSFiddle - React, Tailwind, and code Playground
HTML
Look in the console.
JavaScript
Object.defineProperty(String.prototype, "map", {
value: function(fn, thisArg = undefined) {
return [...this].map(fn, thisArg).join("");
}
});
console.log("testing 😀".map(ch => ch.toUpperCase()));