Skip to content

Commit ca5d3c8

Browse files
author
Steve Thompson
committed
more changes to README
1 parent 1ff8126 commit ca5d3c8

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ getAndRemove.byType(
256256

257257
#### insert: PublicArrayInserter (read-only)
258258
###### Has methods that increase the length of the array and return the PublicArrayInserter instance:
259+
<details>
260+
<summary>view methods</summary>
261+
259262
```
260263
insert.at(index, values: any[]): PublicArrayInserter
261264
// inserts values at index. index can be negative or positive.
@@ -266,9 +269,14 @@ insert.middle(values: any[], offset = 0): PublicArrayInserter
266269
// middle item. If you want to change the insert position, set the optional offset parameter
267270
// to + or - whatever integer you want.
268271
```
269-
272+
</details>
273+
274+
270275
#### remove: PublicArrayRemover (read-only)
271276
###### Has methods that all remove items from the array and return the PublicArrayRemover instance:
277+
<details>
278+
<summary>view methods</summary>
279+
272280
```
273281
remove.byIndex(index): PublicArrayRemover
274282
// index can be negative or positive.
@@ -345,9 +353,14 @@ remove.byType(
345353
type: 'object' | 'array' | 'number' | 'string' | 'boolean' | 'function' | 'undefined'
346354
): PublicArrayRemover
347355
```
356+
</details>
357+
348358

349359
#### replace: PublicArrayReplacer (read-only)
350360
###### Has methods that all replace items in the array and return the PublicArrayReplacer instance:
361+
<details>
362+
<summary>view methods</summary>
363+
351364
```
352365
replace.at(index, newValue): PublicArrayReplacer
353366
// Replaces item at index with newValue. index can be negative or positive.
@@ -415,9 +428,14 @@ replace.each(replacementFunction: (currentValue, currentIndex?, array?) => any):
415428
replace.allWithOne(values: any[], newValue): PublicArrayReplacer
416429
// Replaces all instances of each value in values with newValue.
417430
```
431+
</details>
432+
418433

419434
#### sort: PublicArraySorter (read-only)
420435
###### Has methods that change the order of the items and return the PublicArraySorter instance:
436+
<details>
437+
<summary>view methods</summary>
438+
421439
```
422440
sort.alphabetize(): PublicArraySorter;
423441
// No item in the array gets modified, but each is treated as a string during the sorting.
@@ -433,11 +451,15 @@ sort.reverse(): PublicArraySorter;
433451
sort.shuffle(): PublicArraySorter;
434452
// randomizes the order of items.
435453
```
454+
</details>
455+
436456

437457
#### className: string (read-only)
438458

439459

440460
### Methods
461+
<details>
462+
<summary>view methods</summary>
441463

442464
```
443465
asString(glue = ', '): string
@@ -522,7 +544,7 @@ runMethod_and_returnThis(
522544
additionalAction?
523545
) : this
524546
```
525-
547+
</details>
526548

527549

528550
## Usage Examples

0 commit comments

Comments
 (0)