1

Closed

Document is out-of-date

description

The following line got problem in document.

var hasItem = _Array.Where(function (x) { return x.id > 5; }).AnyItems();
var lastItem = _Array.Where(function (x) { return x.id > 5; }).LastItem();
var avgerageOfIds = _Array.Select(function(x){ return x.id; }).Avg();

Cannot find AnyItems(), LastItem() and Avg().

Please check it out.
Closed Oct 6, 2014 at 12:58 AM by Torac24
  1. AnyItems() - this should be fixed in version 2.5.1 (just released a few minutes ago)
  2. LastItem() - this should be fixed in version 2.5.1 (just released a few minutes ago)
  3. Avg - the documentation is wrong. Please use "Average".

comments

Torac24 wrote Oct 6, 2014 at 12:42 AM

Thank you for letting me know.
  1. AnyItems() - this should be fixed in version 2.5.1 (just released a few minutes ago)
  2. LastItem() - this should be fixed in version 2.5.1 (just released a few minutes ago)
  3. Avg - the documentation is wrong. Please use "Average".
I added a few unit tests to make sure we don't have this issue going forward.

Let me know how you make out with the updated code.

Thank you,
Jason

wrote Oct 6, 2014 at 12:58 AM