...
Code Block |
---|
class StringSplitter { splitString( stringToSplit ) { var result = []; var tempResult = stringToSplit.split( ',' ); console.log("tempResult:"); console.log( tempResult ); console.log(tempResult.length ); if( tempResultstringToSplit.length > 0 ) result = tempResult.push(stringToSplit); return result; } } |