Optimum way to compare strings in JavaScript? Tags: binary-searchcomparisonjavascriptoptimizationstring