You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default this method uses the property **Id** to Identify the Objects. If The property is not set this methods tries to compare the objects directly.
127
+
By default this method uses the property **Id** to identify the objects. If the property is not set this methods tries to compare the objects directly.
125
128
126
129
```javascript
127
130
var array = [{Id:1, Value:"item1"}, {Id:2, Value:"item2"}];
If you want this method to use other Fields for Identification define a selector function as second parameter.
136
+
If you want this method to use other fields for identification define a selector function as second parameter.
134
137
135
138
```javascript
136
139
var array = [{OtherId:1, Value:"item1"}, {OtherId:2, Value:"item2"}];
@@ -154,7 +157,7 @@ array.UpdateRange(
154
157
155
158
Removes item(s) from array
156
159
157
-
By default this method uses the property **Id** to Identify the Objects. If The property is not set this methods tries to compare the objects directly.
160
+
By default this method uses the property **Id** to identify the objects. If the property is not set this methods tries to compare the objects directly.
158
161
159
162
```javascript
160
163
var array = ["item1", "item2", "item3", "item4", "no"];
@@ -166,7 +169,7 @@ array.Remove("no");
166
169
array.RemoveRange(["item4", "item3"]);
167
170
```
168
171
169
-
If you want this method to use other Fields for Identification define a selector function as second parameter.
172
+
If you want this method to use other fields for identification define a selector function as second parameter.
170
173
171
174
```javascript
172
175
var array = [{OtherId:1, Value:"item1"}, {OtherId:2, Value:"item2"}];
@@ -202,7 +205,7 @@ array.Insert("item2.5", 2);
202
205
203
206
### Where
204
207
205
-
Search for all items in array that match the filter
208
+
Searches for all items in array that match the given filter
206
209
207
210
```javascript
208
211
var array = ["item1", "item2", "item3", "item4", "no"];
@@ -254,7 +257,7 @@ array.SequenceEqual(array3);
254
257
255
258
### Any
256
259
257
-
Tests if any item is in the array and if set matches the filter
260
+
Tests if any item is in the array and if a filter is set if any item of the array matches the filter
258
261
259
262
```javascript
260
263
var array = ["item1", "item2", "item3", "item4", "no"];
@@ -431,7 +434,7 @@ array2.Sum();
431
434
432
435
### First
433
436
434
-
Returns the First item of the array and if a filter was set the first item that matches the filter - Throws an Exception if no item was found
437
+
Returns the first item of the array and if a filter was set the first item that matches the filter - Throws an exception if no item was found
435
438
436
439
```javascript
437
440
var array = ["no", "item1", "item2", "item3", "item4", "no"];
@@ -448,7 +451,7 @@ array.First("i => i == 'notgiven'");
448
451
449
452
### FirstOrDefault
450
453
451
-
Returns the First item of the array and if a filter was set the first item that matches the filter - returns `null` if no suitable item was found
454
+
Returns the first item of the array and if a filter was set the first item that matches the filter - returns `null` if no suitable item was found
452
455
453
456
```javascript
454
457
var array = ["no", "item1", "item2", "item3", "item4", "no"];
@@ -481,7 +484,7 @@ array.Min("x => x.age");
481
484
482
485
### Last
483
486
484
-
Returns the Last item of the array and if a filter was set the last item that matches the filter - Throws an Exception if no item was found
487
+
Returns the last item of the array and if a filter was set the last item that matches the filter - Throws an exception if no item was found
485
488
486
489
```javascript
487
490
var array = ["no", "item1", "item2", "item3", "item4", "no"];
@@ -498,7 +501,7 @@ array.Last("i => i == 'notgiven'");
498
501
499
502
### LastOrDefault
500
503
501
-
Returns the Last item of the array and if a filter was set the last item that matches the filter - returns `null` if no suitable item was found
504
+
Returns the last item of the array and if a filter was set the last item that matches the filter - returns `null` if no suitable item was found
502
505
503
506
```javascript
504
507
var array = ["no", "item1", "item2", "item3", "item4", "no"];
0 commit comments