WICG / observable

Observable API proposal
https://wicg.github.io/observable/
Other
543 stars 12 forks source link

Predicate function should include an index parameter #140

Closed domfarolino closed 2 months ago

domfarolino commented 2 months ago

In JavaScript land, filter(), every(), some(), and find() all have an index-consuming Predicate function.

This is in contrast with the Observable API's Predicate functions which does not currently consume an index parameter. I should fix this and update the only spec'd method that uses Predicate right now, which is filter(). This ideally should be done before https://github.com/WICG/observable/pull/137 lands.