@@ -64,7 +64,8 @@ getPublicArray(array = []): PublicArray
64
64
65
65
#### filter: PublicArrayFilter (read-only)
66
66
###### Has methods that narrow down the content of the array and return the PublicArrayFilter instance:
67
- <details ><summary >view methods</summary >
67
+ <details >
68
+ <summary >view methods</summary >
68
69
69
70
```
70
71
filter.byTest(testFunction: ((currentValue, currentIndex?, array?) => boolean)): PublicArrayFilter
@@ -80,6 +81,9 @@ filter.byType(
80
81
81
82
#### getConverted: PublicArrayGetterConverter (read-only)
82
83
###### Has the Array methods .map() and .reduce() , but renamed to .each() and .toOne() , respectively. None of them modify the array.
84
+ <details >
85
+ <summary >view methods</summary >
86
+
83
87
```
84
88
getConverted.toOne(
85
89
reducingFunction: ((previousValue: any, currentValue: any, index?, array?) => any)
@@ -89,9 +93,13 @@ getConverted.toOne(
89
93
getConverted.each(mappingFunction: ((item, index?, array?) => any)): any[]
90
94
// returns new array where each value in current array is converted into something else.
91
95
```
96
+ </details >
92
97
93
98
#### get: PublicArrayGetter (read-only)
94
99
###### Has methods that return items copied from the array. None of them modify the array.
100
+ <details >
101
+ <summary >view methods</summary >
102
+
95
103
```
96
104
get.copy(): any[]
97
105
// Returns independent copy of the array.
@@ -166,9 +174,14 @@ get.byType(
166
174
): IValueIndexPair[]
167
175
// For explanation of IValueIndexPair, see explanation of get.byTest().
168
176
```
177
+ </details >
178
+
169
179
170
180
#### getAndRemove: PublicArrayGetterRemover (read-only)
171
181
###### Has methods that both remove and return items from the array:
182
+ <details >
183
+ <summary >view methods</summary >
184
+
172
185
```
173
186
getAndRemove.byIndex(index): any
174
187
// removes and returns item identified by passed index. index can be negative or positive.
@@ -238,6 +251,7 @@ getAndRemove.byType(
238
251
type: 'object' | 'array' | 'number' | 'string' | 'boolean' | 'function' | 'undefined'
239
252
): IValueIndexPair[]
240
253
```
254
+ </details >
241
255
242
256
243
257
#### insert: PublicArrayInserter (read-only)
0 commit comments