In this example we have number 2.5. We want to split it into 2 variables. We must convert it to string, then split by ., and then convert it back to integer.
findIndex / find
Arrow functions - Lexical 'this' keyword
We have two functions here. First is clickMe, thats function attached to object, so it is a method, so using this keyword inside this function will point to that object. Second function is callback function called in addEventListener, that is regular function. In regular functions, keyword this points to global object - window.
Solution is to defined new variable called usually self which will hold current this.
In ES6 when using arrow function, it shares its lexical this with its surrounding, in this case clickMe method. And inside clickMe method, this keyword points to the object.
NOTE: Now if you change clickMe from function to arrow function, it will not work again as it will share this with its surrounding, which in this case is global window object.
In this case we added bind(this) after the map function. Without that this inside will not work. With bind function we can send copy of that inside, so we are sending copy of this.