Javascript String stripBrackets()

Description

Javascript String stripBrackets()


String.prototype.stripBrackets = function() {
    return this = this.replace(/[\(\{\[].*[\)\}\]]/, '');
}



PreviousNext

Related