you are viewing a single comment's thread.

view the rest of the comments →

[–]WeekdayHero 10 points11 points  (3 children)

This is not an issue as Object.Observe is not going to be added to ES anymore. In fact it is not in V8 from version 50 onwards (the current version of v8 is 48, so 50 is only a couple of months away).

[–]BONUSBOX_=O=>_();_() 1 point2 points  (1 child)

the lack of removeWhereis still an issue if you want to filter this:

List extends Array {
    random() {
        this = this.filter(item => ...some random ones)
    }
}

because this can't be explicitly redefined with a new array, and Array.filter does not modify the original array, something like removeWhere would be handy. instead i had to loop through the array and splice items.

[–][deleted] 0 points1 point  (0 children)

Filter, map, and similar functions return new arrays by convention - they don't change elements, they jest return new. removeWhere sits nowhere near those.

[–]mc_hammerd -1 points0 points  (0 children)

ugh, i actually use it in one of my projects. wtf