JSFiddle - React, Tailwind, and code Playground
JavaScript
function strip(chars) {
return this.replace(chars,"");
}
String.prototype.strip=strip;
var wrong = "Hellow";
console.log(wrong.strip("w"));
function strip(chars) {
return this.replace(chars,"");
}
String.prototype.strip=strip;
var wrong = "Hellow";
console.log(wrong.strip("w"));