JSFiddle - React, Tailwind, and code Playground

by jdb1991

JavaScript

function strip(chars) {
    this.replace(chars,"");
}

String.prototype.strip=strip;

var wrong = "Hellow";

alert(wrong.strip("w"));