mirror of
https://github.com/albertodemichelis/squirrel.git
synced 2026-01-12 14:38:42 +01:00
Sometimes it is needed to process array when result depends not on item value only, but also from its position or collection content. So make array.map() and array.apply() functions more flexible by supporting optional additional parameters in callback: item index and reference to array being processed. (The design is like in https://underscorejs.org/#map)