This question is about an old, but very important posting about repeaters. Here is the link to the post: https://www.wix.com/velo/forum/tips-tutorials-examples/example-todomvc >
In this old post called, Example: TodoMVC, Yisrael put forth a nice and simple template for working with Repeaters, input and output. In this template he uses lots of shorthand code and some very complex (for me) code. After a few hours I am still struggling with two statements shown below. Can someone out there help me to follow and understand them?
let item = $w ( ‘#repeater1’ ). data . find ( _ => _ . id === itemId ); I get that the "" is used as a variable name. But what is going on in the chain of function/statements to the right of the “=”?
$item ( ‘#checkbox1’ ). checked = !! itemData . completed ; What does the right of the “=” mean in this context?
Thanks very much for helping.