These are chat archives for canjs/canjs

13th
Sep 2018
Gregg Roemhildt
@roemhildtg
Sep 13 2018 02:28
Is there a canjs symbol for something like "can.forEach"?
Kevin Phillips
@phillipskevin
Sep 13 2018 16:16
there is CanSymbol.iterator
Gregg Roemhildt
@roemhildtg
Sep 13 2018 16:18
If I add that, it'll call that function in stache for of ?
Kevin Phillips
@phillipskevin
Sep 13 2018 16:57
you're trying to create your own observable you mean?
Gregg Roemhildt
@roemhildtg
Sep 13 2018 17:00
Correct. Its kind of like an array...it has a toArray method, and a length property but its not like a normal array where you can do array[0]. So I thought I'd build an iterator function
Kevin Phillips
@phillipskevin
Sep 13 2018 18:01
you would need more symbols than that
definitely isObservableLike and isListLike
not sure what else