Javascript String mysplit()
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 [] } };