map/filter/reduce with Array
<p>I have a class with Array as a class member.  And I have many class functions that do something with each element of array:</p>

<pre><code>function MyClass {
    this.data = new Array();
}

MyClass.prototype.something_to_do = function() {
    for(var i = 0; i &lt;= this.data.length; i++) {
        // do something with this.data[i]
    }
}

MyClass.prototype.another_thing_to_do = function() {
    for(var i = 0; i &lt;= this.data.length; i++) {
        // do something with this.data[i]
    }
}
</code></pre>

<p>If there any way to improve this code?  I'm searching something like 'map(), filter(), reduce()' in the functional languages:</p>

<pre><code>MyClass.prototype.something_to_do = function() {
    this.data.map/filter/reduce = function(element) {       
    }
}
</code></pre>

<p>Any way to remove explicit for-loop.</p>
