Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
class StringSplitter
{
    splitString( stringToSplit )
    {
        var result = [];

       var tempResultif( = stringToSplit.split( ','length > 0 );
        console.log("tempResult:");{
        console.log( tempResult );  var tempResult = stringToSplit.split( ',' );
 console.log(tempResult.length );          if( tempResult.length > 0 )
                result = tempResult;
        }

        return result;

    }
}