Very often, one will need to return certain elements from an array. This can typically be done through a for loop; however, in ECMAScript5… — Very often, one will need to return certain elements from an array. This can typically be done through a for loop; however, in ECMAScript5, which was released in 2009 and was JavaScript’s first major revision, we gained the ability to filter through an array.