Skip to content

Releases: jkoudys/immutable.php

Find, and more arguments to your callbacks.

19 Dec 21:38

Choose a tag to compare

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.