millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

Issue #93: Add generic collection methods #97

Closed zship closed 12 years ago

zship commented 12 years ago

Completes Issue #93. Added new higher-order functions supporting Array|Object input in a new collection package, and several new object methods to support code re-use within collection package. New object methods are: every, find, pluck, reduce, reject, size, and some.

millermedeiros commented 12 years ago

I'm working on the merge on the branch "collection": https://github.com/millermedeiros/amd-utils/commits/collection - I hope to finish it in the next couple days.

millermedeiros commented 12 years ago

I merged it into master, did some refactoring during the process. Here is a diff in case you want to compare what I did change: https://github.com/millermedeiros/amd-utils/compare/f7e4821bed...0c5166213 - main change was that I simplified some methods and also used forOwn when possible on the object methods to avoid don't enum bug on IE 7-8, also added a few test cases.

Thanks a lot for the contribution.