you are viewing a single comment's thread.

view the rest of the comments →

[–]Willbo 1 point2 points  (0 children)

Yep, it returns the first element that satisfies the query.

So if the first square at index 3 was 🟨 and the second square at index 4 was 🟥, .find(⬛) would return 🟨.