Like the built-in map function, but it replaces the element with an arbitrary number of elements, making it a combination of map, push, and filter.
The array to map. It will be modified.
The element mapper function. It takes the current element as an argument and returns the element(s) take its place.
The same array that was passed as an argument.
Generated using TypeDoc