Wrap around array map and turns any function into a filtering