collect-your-stuff 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -39
- package/browser/collect-your-stuff.js +123 -221
- package/browser/collect-your-stuff.min.js +1 -1
- package/dist/collections/arrayable/ArrayElement.js +18 -24
- package/dist/collections/arrayable/ArrayElement.min.js +1 -1
- package/dist/collections/arrayable/Arrayable.js +5 -13
- package/dist/collections/arrayable/Arrayable.min.js +1 -1
- package/dist/collections/doubly-linked-list/DoubleLinker.js +23 -31
- package/dist/collections/doubly-linked-list/DoubleLinker.min.js +1 -1
- package/dist/collections/doubly-linked-list/DoublyLinkedList.js +5 -13
- package/dist/collections/doubly-linked-list/DoublyLinkedList.min.js +1 -1
- package/dist/collections/linked-list/LinkedList.js +5 -13
- package/dist/collections/linked-list/LinkedList.min.js +1 -1
- package/dist/collections/linked-list/Linker.js +21 -27
- package/dist/collections/linked-list/Linker.min.js +1 -1
- package/dist/collections/linked-tree-list/LinkedTreeList.js +6 -15
- package/dist/collections/linked-tree-list/LinkedTreeList.min.js +1 -1
- package/dist/collections/linked-tree-list/TreeLinker.js +11 -24
- package/dist/collections/linked-tree-list/TreeLinker.min.js +1 -1
- package/dist/collections/queue/Queue.js +2 -8
- package/dist/collections/queue/Queue.min.js +1 -1
- package/dist/collections/queue/Queueable.js +12 -22
- package/dist/collections/queue/Queueable.min.js +1 -1
- package/dist/collections/stack/Stack.js +2 -8
- package/dist/collections/stack/Stack.min.js +1 -1
- package/dist/collections/stack/Stackable.js +7 -15
- package/dist/collections/stack/Stackable.min.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/recipes/ArrayIterator.js +1 -2
- package/dist/recipes/ArrayIterator.min.js +1 -1
- package/dist/recipes/Runnable.js +1 -2
- package/dist/recipes/Runnable.min.js +1 -1
- package/dist/services/services.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -178,9 +178,9 @@ Identify a class that can be run.
|
|
|
178
178
|
Instantiate a Runnable class.
|
|
179
179
|
|
|
180
180
|
|
|
181
|
-
| Param | Type |
|
|
182
|
-
| --- | --- |
|
|
183
|
-
| data | <code>\*</code> |
|
|
181
|
+
| Param | Type | Default |
|
|
182
|
+
| --- | --- | --- |
|
|
183
|
+
| data | <code>\*</code> | <code></code> |
|
|
184
184
|
|
|
185
185
|
<a name="Runnable+task"></a>
|
|
186
186
|
|
|
@@ -298,11 +298,11 @@ Store a collection of items which can only be inserted and removed from the top.
|
|
|
298
298
|
Instantiate the state with the starter stacked list.
|
|
299
299
|
|
|
300
300
|
|
|
301
|
-
| Param | Type |
|
|
302
|
-
| --- | --- |
|
|
303
|
-
| stackedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) |
|
|
304
|
-
| listClass | <code>IsArrayable</code> |
|
|
305
|
-
| stackableClass | [<code>Stackable</code>](#Stackable) |
|
|
301
|
+
| Param | Type | Default |
|
|
302
|
+
| --- | --- | --- |
|
|
303
|
+
| stackedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) | <code></code> |
|
|
304
|
+
| listClass | <code>IsArrayable</code> | |
|
|
305
|
+
| stackableClass | [<code>Stackable</code>](#Stackable) | |
|
|
306
306
|
|
|
307
307
|
<a name="Stack+empty"></a>
|
|
308
308
|
|
|
@@ -442,11 +442,11 @@ Maintain a series of queued items.
|
|
|
442
442
|
Instantiate the queue with the given queue list.
|
|
443
443
|
|
|
444
444
|
|
|
445
|
-
| Param | Type | Description |
|
|
446
|
-
| --- | --- | --- |
|
|
447
|
-
| queuedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) | Give the list of queueables to start in this queue. |
|
|
448
|
-
| listClass | <code>IsArrayable</code> | |
|
|
449
|
-
| queueableClass | [<code>Queueable</code>](#Queueable) | |
|
|
445
|
+
| Param | Type | Default | Description |
|
|
446
|
+
| --- | --- | --- | --- |
|
|
447
|
+
| queuedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) | <code></code> | Give the list of queueables to start in this queue. |
|
|
448
|
+
| listClass | <code>IsArrayable</code> | | |
|
|
449
|
+
| queueableClass | [<code>Queueable</code>](#Queueable) | | |
|
|
450
450
|
|
|
451
451
|
<a name="Queue+dequeue"></a>
|
|
452
452
|
|
|
@@ -527,10 +527,10 @@ Create the children for this tree from an array.
|
|
|
527
527
|
|
|
528
528
|
**Kind**: instance method of [<code>TreeLinker</code>](#TreeLinker)
|
|
529
529
|
|
|
530
|
-
| Param | Type | Description |
|
|
531
|
-
| --- | --- | --- |
|
|
532
|
-
| children | <code>Array</code> \| <code>null</code> | Provide an array of data / linker references to be children of this tree node. |
|
|
533
|
-
| listClass | <code>IsArrayable.<IsTreeNode></code> | Give the type of list to use for storing the children |
|
|
530
|
+
| Param | Type | Default | Description |
|
|
531
|
+
| --- | --- | --- | --- |
|
|
532
|
+
| children | <code>Array</code> \| <code>null</code> | <code></code> | Provide an array of data / linker references to be children of this tree node. |
|
|
533
|
+
| listClass | <code>IsArrayable.<IsTreeNode></code> | | Give the type of list to use for storing the children |
|
|
534
534
|
|
|
535
535
|
<a name="TreeLinker.fromArray"></a>
|
|
536
536
|
|
|
@@ -647,10 +647,10 @@ Set the children on a parent item.
|
|
|
647
647
|
|
|
648
648
|
**Kind**: instance method of [<code>LinkedTreeList</code>](#LinkedTreeList)
|
|
649
649
|
|
|
650
|
-
| Param | Type | Description |
|
|
651
|
-
| --- | --- | --- |
|
|
652
|
-
| item | [<code>TreeLinker</code>](#TreeLinker) | The TreeLinker node that will be the parent of the children |
|
|
653
|
-
| children | [<code>LinkedTreeList</code>](#LinkedTreeList) | The LinkedTreeList which has the child nodes to use |
|
|
650
|
+
| Param | Type | Default | Description |
|
|
651
|
+
| --- | --- | --- | --- |
|
|
652
|
+
| item | [<code>TreeLinker</code>](#TreeLinker) | | The TreeLinker node that will be the parent of the children |
|
|
653
|
+
| children | [<code>LinkedTreeList</code>](#LinkedTreeList) | <code></code> | The LinkedTreeList which has the child nodes to use |
|
|
654
654
|
|
|
655
655
|
<a name="LinkedTreeList+insertAfter"></a>
|
|
656
656
|
|
|
@@ -1406,11 +1406,11 @@ Convert an array to a Stack.
|
|
|
1406
1406
|
Instantiate the state with the starter stacked list.
|
|
1407
1407
|
|
|
1408
1408
|
|
|
1409
|
-
| Param | Type |
|
|
1410
|
-
| --- | --- |
|
|
1411
|
-
| stackedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) |
|
|
1412
|
-
| listClass | <code>IsArrayable</code> |
|
|
1413
|
-
| stackableClass | [<code>Stackable</code>](#Stackable) |
|
|
1409
|
+
| Param | Type | Default |
|
|
1410
|
+
| --- | --- | --- |
|
|
1411
|
+
| stackedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) | <code></code> |
|
|
1412
|
+
| listClass | <code>IsArrayable</code> | |
|
|
1413
|
+
| stackableClass | [<code>Stackable</code>](#Stackable) | |
|
|
1414
1414
|
|
|
1415
1415
|
<a name="Stack+empty"></a>
|
|
1416
1416
|
|
|
@@ -1562,11 +1562,11 @@ Convert an array to a Queue.
|
|
|
1562
1562
|
Instantiate the queue with the given queue list.
|
|
1563
1563
|
|
|
1564
1564
|
|
|
1565
|
-
| Param | Type | Description |
|
|
1566
|
-
| --- | --- | --- |
|
|
1567
|
-
| queuedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) | Give the list of queueables to start in this queue. |
|
|
1568
|
-
| listClass | <code>IsArrayable</code> | |
|
|
1569
|
-
| queueableClass | [<code>Queueable</code>](#Queueable) | |
|
|
1565
|
+
| Param | Type | Default | Description |
|
|
1566
|
+
| --- | --- | --- | --- |
|
|
1567
|
+
| queuedList | <code>Iterable</code> \| [<code>LinkedList</code>](#LinkedList) | <code></code> | Give the list of queueables to start in this queue. |
|
|
1568
|
+
| listClass | <code>IsArrayable</code> | | |
|
|
1569
|
+
| queueableClass | [<code>Queueable</code>](#Queueable) | | |
|
|
1570
1570
|
|
|
1571
1571
|
<a name="Queue+dequeue"></a>
|
|
1572
1572
|
|
|
@@ -1652,10 +1652,10 @@ Create the children for this tree from an array.
|
|
|
1652
1652
|
|
|
1653
1653
|
**Kind**: instance method of [<code>TreeLinker</code>](#TreeLinker)
|
|
1654
1654
|
|
|
1655
|
-
| Param | Type | Description |
|
|
1656
|
-
| --- | --- | --- |
|
|
1657
|
-
| children | <code>Array</code> \| <code>null</code> | Provide an array of data / linker references to be children of this tree node. |
|
|
1658
|
-
| listClass | <code>IsArrayable.<IsTreeNode></code> | Give the type of list to use for storing the children |
|
|
1655
|
+
| Param | Type | Default | Description |
|
|
1656
|
+
| --- | --- | --- | --- |
|
|
1657
|
+
| children | <code>Array</code> \| <code>null</code> | <code></code> | Provide an array of data / linker references to be children of this tree node. |
|
|
1658
|
+
| listClass | <code>IsArrayable.<IsTreeNode></code> | | Give the type of list to use for storing the children |
|
|
1659
1659
|
|
|
1660
1660
|
<a name="TreeLinker.fromArray"></a>
|
|
1661
1661
|
|
|
@@ -1778,10 +1778,10 @@ Set the children on a parent item.
|
|
|
1778
1778
|
|
|
1779
1779
|
**Kind**: instance method of [<code>LinkedTreeList</code>](#LinkedTreeList)
|
|
1780
1780
|
|
|
1781
|
-
| Param | Type | Description |
|
|
1782
|
-
| --- | --- | --- |
|
|
1783
|
-
| item | [<code>TreeLinker</code>](#TreeLinker) | The TreeLinker node that will be the parent of the children |
|
|
1784
|
-
| children | [<code>LinkedTreeList</code>](#LinkedTreeList) | The LinkedTreeList which has the child nodes to use |
|
|
1781
|
+
| Param | Type | Default | Description |
|
|
1782
|
+
| --- | --- | --- | --- |
|
|
1783
|
+
| item | [<code>TreeLinker</code>](#TreeLinker) | | The TreeLinker node that will be the parent of the children |
|
|
1784
|
+
| children | [<code>LinkedTreeList</code>](#LinkedTreeList) | <code></code> | The LinkedTreeList which has the child nodes to use |
|
|
1785
1785
|
|
|
1786
1786
|
<a name="LinkedTreeList+insertAfter"></a>
|
|
1787
1787
|
|