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