filterMap()

Filters the contents of an array and then returns the remaining values mapped as different or possibly the same values.

This function is valid in v2.15.0 to v2.16.0. This function has been downloaded 4 times.

Parameters

{Array} array
The array which will be shallow copied, filtered and sent back with possibly modified values based on func.
{Function} func
The function which will called for each value that is in a defined index in array. The function will be passed (1) the value to be examined, (2) the index of that value and (3) a reference to array. If the function returns any value that is not the same as opt_badValue, that value will be appended to the end of the array that will be returned.
{*=} opt_badValue Optional, Default:undefined
The value that if returned by func it will not be appended to the array to be returned.

Returns

{Array}
A non-sparse array of all of the values that were filtered and mapped back from array based on func and opt_badValue.