Skip to content

String Splitting Improvement

Compare
Choose a tag to compare
@MichaelXF MichaelXF released this 01 Jul 05:13
· 331 commits to master since this release
b8b1369
  • String Splitting now supports percentages and a custom callback. (#22)
{
  // percentage
  stringSplitting: 0.75, // = 75%

  // exclude certain strings
  stringSplitting: (str)=>{
    if ( str == "dont-split-string" ) {
      return false;
    }

    return true;
  },
}