myColl.y = [y for each (y in myColl.y) if (y != myThing.getY())];
I understand what this is doing, returning all the 'y' items that are not the current one...
But, what is the concept called here with the brackets? I would like to read up on what this is , syntax, etc.
It's an array comprehension.
Apparently this was introduced in Javascript 1.7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With