SteveSanderson/knockout — pull request #873 by aaronpowell (2013-03-05 04:11:27+00:00)
Title: Adding support for ES5 arrays on ObservableArrays

Quite often I find myself needing to use ES5 array methods (particularly `map` and `filter`) but for that you need to unwrap the observable array before it can be used.

I've added these as methods to the observableArray so they can be used like so:

it('Should expose a some method for matching some items', function () {
testObservableArray([12, 5, 8, 1, 4]);
var result = testObservableArray.some(function (element, index, array) {
return (element >= 10);
});

expect(result).toEqual(true);
});

I've opted to not use any of the mutation notification as (in theory) all of the methods are for data transformation and not for data mutation.

Test coverage has also been included.