Introduction To map(), reduce(), and filter() function in javascript. This tutorial explains how to use map(), reduce(), and filter() function in javascript programming language. Nowadays these function are widely used during react and react native application development.map returns an array with the same length, filter as the name implies, it returns an array with less items than the original array reduce returns a single value (or object)