Skip to content

Commit 1ff8126

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

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ getPublicArray(array = []): PublicArray
6464

6565
#### filter: PublicArrayFilter (read-only)
6666
###### 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>
6869

6970
```
7071
filter.byTest(testFunction: ((currentValue, currentIndex?, array?) => boolean)): PublicArrayFilter
@@ -80,6 +81,9 @@ filter.byType(
8081

8182
#### getConverted: PublicArrayGetterConverter (read-only)
8283
###### 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+
8387
```
8488
getConverted.toOne(
8589
reducingFunction: ((previousValue: any, currentValue: any, index?, array?) => any)
@@ -89,9 +93,13 @@ getConverted.toOne(
8993
getConverted.each(mappingFunction: ((item, index?, array?) => any)): any[]
9094
// returns new array where each value in current array is converted into something else.
9195
```
96+
</details>
9297

9398
#### get: PublicArrayGetter (read-only)
9499
###### Has methods that return items copied from the array. None of them modify the array.
100+
<details>
101+
<summary>view methods</summary>
102+
95103
```
96104
get.copy(): any[]
97105
// Returns independent copy of the array.
@@ -166,9 +174,14 @@ get.byType(
166174
): IValueIndexPair[]
167175
// For explanation of IValueIndexPair, see explanation of get.byTest().
168176
```
177+
</details>
178+
169179

170180
#### getAndRemove: PublicArrayGetterRemover (read-only)
171181
###### Has methods that both remove and return items from the array:
182+
<details>
183+
<summary>view methods</summary>
184+
172185
```
173186
getAndRemove.byIndex(index): any
174187
// removes and returns item identified by passed index. index can be negative or positive.
@@ -238,6 +251,7 @@ getAndRemove.byType(
238251
type: 'object' | 'array' | 'number' | 'string' | 'boolean' | 'function' | 'undefined'
239252
): IValueIndexPair[]
240253
```
254+
</details>
241255

242256

243257
#### insert: PublicArrayInserter (read-only)

0 commit comments

Comments
 (0)