rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.36k stars 194 forks source link

Find Method for Seamless Arrays #230

Open zepod opened 7 years ago

zepod commented 7 years ago

Seamless-Immutable Arrays lack .find method, therefore one is force to .filter(...)[0] which saddens.

dbashford commented 6 years ago

Tripped me up too, would be a great addition.

nonameolsson commented 6 years ago

How come there is no find-method? Would have been great!

jkeam commented 4 years ago

Isn't find in the prototypical inheritance tree (Array is the prototype)?