Javascript String mysplit()

Description

Javascript String mysplit()

String.prototype.mysplit = function () {
    if (this.length) {
        let str = this.endTrim(',');
        return str.split(',');
    } else {//from   w w  w.ja va2  s  . com
        return []
    }
};



PreviousNext

Related