|
@@ -11,12 +11,12 @@
|
|
|
### Minor Changes
|
|
|
|
|
|
- 231a79c: Refactored code and documentation and added new functions:
|
|
|
- - mapRange() to map a number from one range to the same spot in another range
|
|
|
- - randRange() to generate a random number between a min and max boundary
|
|
|
- - randomItem() to return a random item from an array
|
|
|
- - randomItemIndex() to return a tuple of a random item and its index from an array
|
|
|
- - takeRandomItem() to return a random item from an array and mutate it to remove the item
|
|
|
- - randomizeArray() to return a copy of the array with its items in a random order
|
|
|
+ - `mapRange()` to map a number from one range to the same spot in another range
|
|
|
+ - `randRange()` to generate a random number between a min and max boundary
|
|
|
+ - `randomItem()` to return a random item from an array
|
|
|
+ - `randomItemIndex()` to return a tuple of a random item and its index from an array
|
|
|
+ - `takeRandomItem()` to return a random item from an array and mutate it to remove the item
|
|
|
+ - `randomizeArray()` to return a copy of the array with its items in a random order
|
|
|
|
|
|
### Patch Changes
|
|
|
|
|
@@ -26,13 +26,13 @@
|
|
|
|
|
|
### Minor Changes
|
|
|
|
|
|
-- 07ec443: add getSelectorMap() to return all currently registered selectors
|
|
|
+- 07ec443: add `getSelectorMap()` to return all currently registered selectors
|
|
|
|
|
|
## 0.2.0
|
|
|
|
|
|
### Minor Changes
|
|
|
|
|
|
-- 0cf2254: add onSelector() to call a listener once a selector is found in the DOM
|
|
|
+- 0cf2254: add `onSelector()` to call a listener once a selector is found in the DOM
|
|
|
|
|
|
## 0.1.1
|
|
|
|