Skip to content

New map mode and 4 new utility methods

Compare
Choose a tag to compare
@minwork minwork released this 17 Sep 08:26
· 35 commits to master since this release

Added new Arr::map mode (MAP_ARRAY_VALUE_KEY) to resemble native array_map but with array as first argument and callback as second.

Also added 4 new utility methods for getting first and last key or value from array:

  • getFirstKey
  • getLastKey
  • getFirstValue
  • getLastValue