The split approach is interesting. I was playing with different options, but not with this. Also, I found that using toLowerCase() made the code considerably slower, it works considerably faster if you use a regular expression in the split:
const xo6 = str => str.split(/x/i).length == str.split(/o/i).length;
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.