kamranayub / UnderscoreKO

A tiny library that adds all of the Underscore.js collection/array methods to Knockout observable arrays
MIT License
50 stars 11 forks source link

Take care of passing in observable arrays #2

Closed kamranayub closed 12 years ago

kamranayub commented 12 years ago

People shouldn't need to do this:

vm.myArray.union(vm.otherArray(), vm.otherArray2());

Instead, it should know to get the raw values:

vm.myArray.union(vm.otherArray, vm.otherArray2);

Applies to any Underscore methods that take an array* argument list.