News for hackers. Stuff that matters.
Re:Icaro – Smart Javascript object observer, ideal for batch... by akx on Sunday July 02, 2017 @09:25AM (#14682380)
The array example is a little weird.

    // no events here
    arr.map(v => v + '-meh')
Since `.map` doesn't mutate the array in the first place, surely no one would expect observation events to occur anyway?
Re:Icaro – Smart Javascript object observer, ideal for batch... by gianlucaguarini on Sunday July 02, 2017 @09:33AM (#14682408)
now array methods dispatch as well in v1.1.0 I also thought it was weird thanks for your feedback anyway
Re:Icaro – Smart Javascript object observer, ideal for batch... by logiccraft on Sunday July 02, 2017 @10:28AM (#14682626)
Indeed. This functionality really worries me.

Why would a non-mutation trigger listeners?

Re:Icaro – Smart Javascript object observer, ideal for batch... by gianlucaguarini on Sunday July 02, 2017 @10:42AM (#14682671)
you are absolutely right, map doesn't belong to the mutational methods. Fixed in v1.1.1 thank you for your feedback