@@ -67,8 +67,7 @@ new PublicArray(array = [])
67
67
68
68
Helpful tidbit: These properties all contain their own ` .data ` property, which always matches ` this.data `
69
69
70
- #### filter: [ PublicArrayFilter] ( https://github.com/writetome51/public-array-filter#publicarrayfilter )
71
- (read-only)
70
+ #### filter: [ PublicArrayFilter] ( https://github.com/writetome51/public-array-filter#publicarrayfilter ) (read-only)
72
71
###### Its methods narrow down the content of this.data and return the PublicArrayFilter instance:
73
72
<details >
74
73
<summary >view methods</summary >
@@ -85,8 +84,7 @@ filter.byType(
85
84
</details >
86
85
87
86
88
- #### get: [ PublicArrayGetter] ( https://github.com/writetome51/public-array-getter#publicarraygetter )
89
- (read-only)
87
+ #### get: [ PublicArrayGetter] ( https://github.com/writetome51/public-array-getter#publicarraygetter ) (read-only)
90
88
###### Its methods return items copied from this.data . None of them modify this.data .
91
89
<details >
92
90
<summary >view methods</summary >
@@ -171,7 +169,7 @@ get.byType(
171
169
</details >
172
170
173
171
174
- #### getConverted: PublicArrayGetterConverter (read-only)
172
+ #### getConverted: [ PublicArrayGetterConverter] ( https://github.com/writetome51/public-array-getter-converter#publicarraygetterconverter ) (read-only)
175
173
###### Has the Array methods .map() and .reduce() , but renamed to .each() and .toOne() , respectively. None of them modify this.data .
176
174
<details >
177
175
<summary >view methods</summary >
@@ -188,7 +186,7 @@ getConverted.each(mappingFunction: ((item, index?, array?) => any)): any[]
188
186
</details >
189
187
190
188
191
- #### getAndRemove: PublicArrayGetterRemover (read-only)
189
+ #### getAndRemove: [ PublicArrayGetterRemover] ( https://github.com/writetome51/public-array-getter-remover#publicarraygetterremover ) (read-only)
192
190
###### Its methods both remove and return items from this.data:
193
191
<details >
194
192
<summary >view methods</summary >
@@ -266,7 +264,7 @@ getAndRemove.byType(
266
264
</details >
267
265
268
266
269
- #### insert: PublicArrayInserter (read-only)
267
+ #### insert: [ PublicArrayInserter] ( https://github.com/writetome51/public-array-inserter#publicarrayinserter ) (read-only)
270
268
###### Has methods that increase the length of this.data and return the PublicArrayInserter instance:
271
269
<details >
272
270
<summary >view methods</summary >
@@ -287,7 +285,7 @@ insert.middle(values: any[], offset = 0): PublicArrayInserter
287
285
</details >
288
286
289
287
290
- #### remove: PublicArrayRemover (read-only)
288
+ #### remove: [ PublicArrayRemover] ( https://github.com/writetome51/public-array-remover#publicarrayremover ) (read-only)
291
289
###### Has methods that all remove items from this.data and return the PublicArrayRemover instance:
292
290
<details >
293
291
<summary >view methods</summary >
@@ -371,7 +369,7 @@ remove.byType(
371
369
</details >
372
370
373
371
374
- #### replace: PublicArrayReplacer (read-only)
372
+ #### replace: [ PublicArrayReplacer] ( https://github.com/writetome51/public-array-replacer#publicarrayreplacer ) (read-only)
375
373
###### Its methods all replace items in this.data and return the PublicArrayReplacer instance:
376
374
<details >
377
375
<summary >view methods</summary >
@@ -450,7 +448,7 @@ replace.allWithOne(values: any[], newValue): PublicArrayReplacer
450
448
</details >
451
449
452
450
453
- #### sort: PublicArraySorter (read-only)
451
+ #### sort: [ PublicArraySorter] ( https://github.com/writetome51/public-array-sorter#publicarraysorter ) (read-only)
454
452
###### Its methods change the order of items in this.data and return the PublicArraySorter instance:
455
453
<details >
456
454
<summary >view methods</summary >
@@ -602,7 +600,7 @@ if (arr.hasAdjacent([9,12,11,3])) console.log('yes'); // --> 'yes'
602
600
arr.filter.byType('number');
603
601
arr.sort.numbersAscending();
604
602
605
- // removing and returning dirty 4-letter words:
603
+ // removing and returning 4-letter words:
606
604
let dirtyWords = arr.getAndRemove.byTest((item) => isString(item) && item.length === 4);
607
605
608
606
// inserting a new item just before the last item and returning the modified Array:
0 commit comments