Use native .filter and .map methods, where appropiate.