Skip to content

Find, and more arguments to your callbacks.

Latest
Compare
Choose a tag to compare
@jkoudys jkoudys released this 19 Dec 21:38
· 16 commits to master since this release

Non-breaking API additions:

  • ImmArray::find() - works like the ecma find. Takes a callback. Much faster than reducing or requiring your own foreaches, since it exits on first found item.
  • Callbacks take index and original array. Very useful if you want an ImmArray::map to know which index it's on.