Version 2.5.2

Rating:        Based on 1 rating
Reviewed:  0 reviews
Downloads: 120
Released: Nov 19, 2014
Updated: Nov 19, 2014 by Torac24
Dev status: Stable Help Icon

Recommended Download

Application Javascript Source Code File
application, 113K, uploaded Nov 19, 2014 - 60 downloads

Other Available Downloads

Application Typescript Source Code File (Optional)
application, 131K, uploaded Nov 19, 2014 - 21 downloads
Application Javascript Unit Test File (Optional)
application, 106K, uploaded Nov 19, 2014 - 20 downloads
Application TypeScript Unit Test File (Optional)
application, 115K, uploaded Nov 19, 2014 - 19 downloads

Release Notes

New Methods
  • First
  • Single
  • SkipWhile
  • TakeWhile
  • Aggregate
Added Functionality
  • Dictionaries now support composite keys. ie: { Id: = x.Id, Id2: x.Id2 }
var myDictionary = _Array.Where(function (x) { return > 5; }).ToDictionary(function(x){ return { Id: x.Id, Id2: x.Id2;});
  • Multi Property Sorting (Order By And OrderByDescending now returns an iterator)
 _Array.OrderBy(x => x.Id).ThenBy(x => x.Id2);
 _Array.OrderBy(x => x.Id).ThenByDescending(x => x.Id2)

  • Depreciating LastItem and AnyItems. Just use Last() / Any(). Won't remove from API.
New Collection Types
  • Added a Hashset. Uses an object internally. See documentation for full method listing
 _Array.Where(x => x.Id == 1).ToHashSet();

Minor Changes
  • Clean up the unit test method names.
  • Allow you to pass no parameters into FirstOrDefault and SingleOrDefault. FirstOrDefault will grab the first item or return null if no items exist. Single Or Default will grab the single item or null if not found, or throw an error if multiple are found.
  • Added performance unit test page. Just to get a ball park of performance for an array with a large number of items.
  • Grouping will now use a dictionary which sped up performance drastically.
  • Updated QUnit to 1.15.0

Reviews for this release