@@ -256,6 +256,9 @@ getAndRemove.byType(
256
256
257
257
#### insert: PublicArrayInserter (read-only)
258
258
###### Has methods that increase the length of the array and return the PublicArrayInserter instance:
259
+ <details >
260
+ <summary >view methods</summary >
261
+
259
262
```
260
263
insert.at(index, values: any[]): PublicArrayInserter
261
264
// inserts values at index. index can be negative or positive.
@@ -266,9 +269,14 @@ insert.middle(values: any[], offset = 0): PublicArrayInserter
266
269
// middle item. If you want to change the insert position, set the optional offset parameter
267
270
// to + or - whatever integer you want.
268
271
```
269
-
272
+ </details >
273
+
274
+
270
275
#### remove: PublicArrayRemover (read-only)
271
276
###### Has methods that all remove items from the array and return the PublicArrayRemover instance:
277
+ <details >
278
+ <summary >view methods</summary >
279
+
272
280
```
273
281
remove.byIndex(index): PublicArrayRemover
274
282
// index can be negative or positive.
@@ -345,9 +353,14 @@ remove.byType(
345
353
type: 'object' | 'array' | 'number' | 'string' | 'boolean' | 'function' | 'undefined'
346
354
): PublicArrayRemover
347
355
```
356
+ </details >
357
+
348
358
349
359
#### replace: PublicArrayReplacer (read-only)
350
360
###### Has methods that all replace items in the array and return the PublicArrayReplacer instance:
361
+ <details >
362
+ <summary >view methods</summary >
363
+
351
364
```
352
365
replace.at(index, newValue): PublicArrayReplacer
353
366
// Replaces item at index with newValue. index can be negative or positive.
@@ -415,9 +428,14 @@ replace.each(replacementFunction: (currentValue, currentIndex?, array?) => any):
415
428
replace.allWithOne(values: any[], newValue): PublicArrayReplacer
416
429
// Replaces all instances of each value in values with newValue.
417
430
```
431
+ </details >
432
+
418
433
419
434
#### sort: PublicArraySorter (read-only)
420
435
###### Has methods that change the order of the items and return the PublicArraySorter instance:
436
+ <details >
437
+ <summary >view methods</summary >
438
+
421
439
```
422
440
sort.alphabetize(): PublicArraySorter;
423
441
// No item in the array gets modified, but each is treated as a string during the sorting.
@@ -433,11 +451,15 @@ sort.reverse(): PublicArraySorter;
433
451
sort.shuffle(): PublicArraySorter;
434
452
// randomizes the order of items.
435
453
```
454
+ </details >
455
+
436
456
437
457
#### className: string (read-only)
438
458
439
459
440
460
### Methods
461
+ <details >
462
+ <summary >view methods</summary >
441
463
442
464
```
443
465
asString(glue = ', '): string
@@ -522,7 +544,7 @@ runMethod_and_returnThis(
522
544
additionalAction?
523
545
) : this
524
546
```
525
-
547
+ </ details >
526
548
527
549
528
550
## Usage Examples
0 commit comments