@ezez/utils 3.0.0 → 4.0.0

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/omit.d.ts +1 -1
  7. package/dist/omit.d.ts.map +1 -1
  8. package/dist/omit.js.map +1 -1
  9. package/dist/replaceDeep.d.ts +5 -1
  10. package/dist/replaceDeep.d.ts.map +1 -1
  11. package/dist/replaceDeep.js +3 -20
  12. package/dist/replaceDeep.js.map +1 -1
  13. package/dist/replaceDeepByFn.d.ts +7 -0
  14. package/dist/replaceDeepByFn.d.ts.map +1 -0
  15. package/dist/replaceDeepByFn.js +47 -0
  16. package/dist/replaceDeepByFn.js.map +1 -0
  17. package/dist/serialize.d.ts.map +1 -1
  18. package/dist/serialize.js +56 -18
  19. package/dist/serialize.js.map +1 -1
  20. package/dist/trim.d.ts +3 -0
  21. package/dist/trim.d.ts.map +1 -0
  22. package/dist/trim.js +10 -0
  23. package/dist/trim.js.map +1 -0
  24. package/dist/trimEnd.d.ts +3 -0
  25. package/dist/trimEnd.d.ts.map +1 -0
  26. package/dist/trimEnd.js +12 -0
  27. package/dist/trimEnd.js.map +1 -0
  28. package/dist/trimStart.d.ts +3 -0
  29. package/dist/trimStart.d.ts.map +1 -0
  30. package/dist/trimStart.js +12 -0
  31. package/dist/trimStart.js.map +1 -0
  32. package/dist/utils/utils.d.ts +6 -0
  33. package/dist/utils/utils.d.ts.map +1 -0
  34. package/dist/utils/utils.js +10 -0
  35. package/dist/utils/utils.js.map +1 -0
  36. package/docs/assets/search.js +1 -1
  37. package/docs/functions/cap.html +8 -5
  38. package/docs/functions/capitalize.html +8 -5
  39. package/docs/functions/coalesce.html +8 -5
  40. package/docs/functions/compareArrays.html +8 -5
  41. package/docs/functions/compareProps.html +8 -5
  42. package/docs/functions/deserialize.html +8 -5
  43. package/docs/functions/ensureArray.html +8 -5
  44. package/docs/functions/ensureDate.html +8 -5
  45. package/docs/functions/ensureError.html +8 -5
  46. package/docs/functions/ensurePrefix.html +8 -5
  47. package/docs/functions/ensureSuffix.html +8 -5
  48. package/docs/functions/ensureTimestamp.html +8 -5
  49. package/docs/functions/escapeRegExp.html +8 -5
  50. package/docs/functions/formatDate.html +8 -5
  51. package/docs/functions/get.html +8 -5
  52. package/docs/functions/getMultiple.html +8 -5
  53. package/docs/functions/insertSeparator.html +8 -5
  54. package/docs/functions/isEmpty.html +8 -5
  55. package/docs/functions/isNumericString.html +8 -5
  56. package/docs/functions/isPlainObject.html +8 -5
  57. package/docs/functions/last.html +8 -5
  58. package/docs/functions/later-1.html +8 -5
  59. package/docs/functions/mapAsync.html +8 -5
  60. package/docs/functions/mapValues.html +8 -5
  61. package/docs/functions/match.html +8 -5
  62. package/docs/functions/merge.html +16 -13
  63. package/docs/functions/mostFrequent.html +8 -5
  64. package/docs/functions/noop.html +8 -5
  65. package/docs/functions/occurrences.html +8 -5
  66. package/docs/functions/omit.html +14 -7
  67. package/docs/functions/pick.html +9 -6
  68. package/docs/functions/pull.html +8 -5
  69. package/docs/functions/remove.html +8 -5
  70. package/docs/functions/removeCommonProperties.html +8 -5
  71. package/docs/functions/replace.html +8 -5
  72. package/docs/functions/replaceDeep.html +19 -7
  73. package/docs/functions/rethrow.html +8 -5
  74. package/docs/functions/round.html +8 -5
  75. package/docs/functions/safe.html +9 -6
  76. package/docs/functions/sample.html +8 -5
  77. package/docs/functions/samples.html +8 -5
  78. package/docs/functions/scale.html +8 -5
  79. package/docs/functions/seq.html +8 -5
  80. package/docs/functions/seqEarlyBreak.html +8 -5
  81. package/docs/functions/serialize.html +8 -5
  82. package/docs/functions/set.html +8 -5
  83. package/docs/functions/setImmutable.html +8 -5
  84. package/docs/functions/shuffle.html +8 -5
  85. package/docs/functions/sortBy.html +8 -5
  86. package/docs/functions/sortProps.html +8 -5
  87. package/docs/functions/stripPrefix.html +8 -5
  88. package/docs/functions/stripSuffix.html +8 -5
  89. package/docs/functions/throttle.html +8 -5
  90. package/docs/functions/toggle.html +8 -5
  91. package/docs/functions/trim.html +152 -0
  92. package/docs/functions/trimEnd.html +152 -0
  93. package/docs/functions/trimStart.html +152 -0
  94. package/docs/functions/truthy.html +8 -5
  95. package/docs/functions/unique.html +8 -5
  96. package/docs/functions/wait.html +8 -5
  97. package/docs/functions/waitFor.html +8 -5
  98. package/docs/functions/waitSync.html +8 -5
  99. package/docs/index.html +7 -4
  100. package/docs/interfaces/ComparePropsOptions.html +6 -6
  101. package/docs/interfaces/GetMultipleSource.html +8 -5
  102. package/docs/interfaces/GetSource.html +8 -5
  103. package/docs/interfaces/IsNumericStringOptions.html +9 -9
  104. package/docs/interfaces/OccurencesOptions.html +6 -6
  105. package/docs/interfaces/SetImmutableSource.html +8 -5
  106. package/docs/interfaces/SetSource.html +8 -5
  107. package/docs/interfaces/ThrottleOptions.html +7 -7
  108. package/docs/interfaces/ThrottledFunctionExtras.html +7 -7
  109. package/docs/modules.html +10 -4
  110. package/docs/pages/CHANGELOG.html +113 -64
  111. package/docs/pages/Introduction.html +7 -4
  112. package/docs/types/CustomDeserializers.html +8 -5
  113. package/docs/types/CustomSerializers.html +8 -5
  114. package/docs/types/Later.html +8 -5
  115. package/docs/types/MapValuesFn.html +8 -5
  116. package/docs/types/MatchCallback.html +8 -5
  117. package/docs/types/SeqEarlyBreaker.html +8 -5
  118. package/docs/types/SeqFn.html +8 -5
  119. package/docs/types/SeqFunctions.html +8 -5
  120. package/docs/types/SetImmutablePath.html +8 -5
  121. package/docs/types/ThrottledFunction.html +8 -5
  122. package/docs/variables/mapValuesUNSET.html +8 -5
  123. package/docs/variables/mergeUNSET.html +8 -5
  124. package/esm/index.d.ts +3 -0
  125. package/esm/index.d.ts.map +1 -1
  126. package/esm/index.js +3 -0
  127. package/esm/index.js.map +1 -1
  128. package/esm/omit.d.ts +1 -1
  129. package/esm/omit.d.ts.map +1 -1
  130. package/esm/omit.js.map +1 -1
  131. package/esm/replaceDeep.d.ts +5 -1
  132. package/esm/replaceDeep.d.ts.map +1 -1
  133. package/esm/replaceDeep.js +3 -20
  134. package/esm/replaceDeep.js.map +1 -1
  135. package/esm/replaceDeepByFn.d.ts +7 -0
  136. package/esm/replaceDeepByFn.d.ts.map +1 -0
  137. package/esm/replaceDeepByFn.js +44 -0
  138. package/esm/replaceDeepByFn.js.map +1 -0
  139. package/esm/serialize.d.ts.map +1 -1
  140. package/esm/serialize.js +56 -18
  141. package/esm/serialize.js.map +1 -1
  142. package/esm/trim.d.ts +3 -0
  143. package/esm/trim.d.ts.map +1 -0
  144. package/esm/trim.js +7 -0
  145. package/esm/trim.js.map +1 -0
  146. package/esm/trimEnd.d.ts +3 -0
  147. package/esm/trimEnd.d.ts.map +1 -0
  148. package/esm/trimEnd.js +9 -0
  149. package/esm/trimEnd.js.map +1 -0
  150. package/esm/trimStart.d.ts +3 -0
  151. package/esm/trimStart.d.ts.map +1 -0
  152. package/esm/trimStart.js +9 -0
  153. package/esm/trimStart.js.map +1 -0
  154. package/esm/utils/utils.d.ts +6 -0
  155. package/esm/utils/utils.d.ts.map +1 -0
  156. package/esm/utils/utils.js +7 -0
  157. package/esm/utils/utils.js.map +1 -0
  158. package/package.json +1 -1
  159. package/src/deserialize.spec.ts +12 -0
  160. package/src/index.ts +3 -0
  161. package/src/omit.ts +8 -2
  162. package/src/pick.ts +1 -1
  163. package/src/replaceDeep.spec.ts +91 -0
  164. package/src/replaceDeep.ts +22 -27
  165. package/src/replaceDeepByFn.spec.ts +162 -0
  166. package/src/replaceDeepByFn.ts +93 -0
  167. package/src/serialize.spec.ts +42 -0
  168. package/src/serialize.ts +65 -18
  169. package/src/trim.spec.ts +22 -0
  170. package/src/trim.ts +23 -0
  171. package/src/trimEnd.spec.ts +20 -0
  172. package/src/trimEnd.ts +22 -0
  173. package/src/trimStart.spec.ts +20 -0
  174. package/src/trimStart.ts +22 -0
  175. package/src/utils/utils.ts +11 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Changelog | @ezez/utils - v3.0.0</title><meta name="description" content="Documentation for @ezez/utils - v3.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Changelog | @ezez/utils - v4.0.0</title><meta name="description" content="Documentation for @ezez/utils - v4.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,24 +6,70 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v3.0.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v4.0.0</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">@ezez/utils - v3.0.0</a></li>
15
+ <li><a href="../modules.html">@ezez/utils - v4.0.0</a></li>
16
16
  <li><a href="CHANGELOG.html">Changelog</a></li></ul>
17
17
  <h1> Changelog</h1></div>
18
18
  <div class="tsd-panel tsd-typography"><p>All notable changes to this project will be documented in this file.</p>
19
19
  <p>The format is based on <a href="https://ezez.dev/changelog/">EZEZ Changelog</a>
20
20
  and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semantic Versioning</a>.</p>
21
21
 
22
+ <a href="#unreleased" id="unreleased" style="color: inherit; text-decoration: none;">
23
+ <h2>[UNRELEASED]</h2>
24
+ </a>
25
+ <ul>
26
+ <li>(nothing yet)</li>
27
+ </ul>
28
+
29
+ <a href="#400---2024-05-16" id="400---2024-05-16" style="color: inherit; text-decoration: none;">
30
+ <h2>[4.0.0] - 2024-05-16</h2>
31
+ </a>
32
+
33
+ <a href="#breaking" id="breaking" style="color: inherit; text-decoration: none;">
34
+ <h3>Breaking</h3>
35
+ </a>
36
+ <ul>
37
+ <li><code>replaceDeep</code> will not mutate anything by default anymore — previously it was wrongly documented as always mutating,
38
+ but it was not mutating objects. Mutating behavior can now be enabled and additionally controlled by defining if
39
+ instances properties are allowed to be mutated.</li>
40
+ <li>[<code>serialize</code>] to avoid excessive calls to serializer functions - they are now only called with non-plain objects or
41
+ unknown data types, this breaks some rare use cases</li>
42
+ </ul>
43
+
44
+ <a href="#changed" id="changed" style="color: inherit; text-decoration: none;">
45
+ <h3>Changed</h3>
46
+ </a>
47
+ <ul>
48
+ <li><code>serialize</code> custom serializers now allow things like <code>Date</code> (that defines .toJSON) to be supported as the user would
49
+ expect</li>
50
+ </ul>
51
+
52
+ <a href="#added" id="added" style="color: inherit; text-decoration: none;">
53
+ <h3>Added</h3>
54
+ </a>
55
+ <ul>
56
+ <li><code>replaceDeepByFn</code> method for more granular control over replacing values. <code>replaceDeep</code> is a simplified wrapper over
57
+ the new function</li>
58
+ <li><code>trim</code>, <code>trimStart</code>, and <code>trimEnd</code> methods</li>
59
+ </ul>
60
+
61
+ <a href="#dev" id="dev" style="color: inherit; text-decoration: none;">
62
+ <h3>Dev</h3>
63
+ </a>
64
+ <ul>
65
+ <li>upgraded some jsdocs</li>
66
+ </ul>
67
+
22
68
  <a href="#300---2024-03-25" id="300---2024-03-25" style="color: inherit; text-decoration: none;">
23
69
  <h2>[3.0.0] - 2024-03-25</h2>
24
70
  </a>
25
71
 
26
- <a href="#breaking" id="breaking" style="color: inherit; text-decoration: none;">
72
+ <a href="#breaking-1" id="breaking-1" style="color: inherit; text-decoration: none;">
27
73
  <h3>Breaking</h3>
28
74
  </a>
29
75
  <ul>
@@ -37,7 +83,7 @@ and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semanti
37
83
  </li>
38
84
  </ul>
39
85
 
40
- <a href="#added" id="added" style="color: inherit; text-decoration: none;">
86
+ <a href="#added-1" id="added-1" style="color: inherit; text-decoration: none;">
41
87
  <h3>Added</h3>
42
88
  </a>
43
89
  <ul>
@@ -47,7 +93,7 @@ and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semanti
47
93
  <li><code>shuffle</code> method</li>
48
94
  </ul>
49
95
 
50
- <a href="#dev" id="dev" style="color: inherit; text-decoration: none;">
96
+ <a href="#dev-1" id="dev-1" style="color: inherit; text-decoration: none;">
51
97
  <h3>Dev</h3>
52
98
  </a>
53
99
  <ul>
@@ -59,7 +105,7 @@ and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semanti
59
105
  <h2>[2.1.0] - 2023-10-29</h2>
60
106
  </a>
61
107
 
62
- <a href="#added-1" id="added-1" style="color: inherit; text-decoration: none;">
108
+ <a href="#added-2" id="added-2" style="color: inherit; text-decoration: none;">
63
109
  <h3>Added</h3>
64
110
  </a>
65
111
  <ul>
@@ -70,7 +116,7 @@ and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semanti
70
116
  <h2>[2.0.0] - 2023-10-09</h2>
71
117
  </a>
72
118
 
73
- <a href="#breaking-1" id="breaking-1" style="color: inherit; text-decoration: none;">
119
+ <a href="#breaking-2" id="breaking-2" style="color: inherit; text-decoration: none;">
74
120
  <h3>Breaking</h3>
75
121
  </a>
76
122
  <ul>
@@ -78,7 +124,7 @@ and this project adheres to <a href="http://semver.org/spec/v2.0.0.html">Semanti
78
124
  transpile this lib yourself</li>
79
125
  </ul>
80
126
 
81
- <a href="#added-2" id="added-2" style="color: inherit; text-decoration: none;">
127
+ <a href="#added-3" id="added-3" style="color: inherit; text-decoration: none;">
82
128
  <h3>Added</h3>
83
129
  </a>
84
130
  <ul>
@@ -91,7 +137,7 @@ transpile this lib yourself</li>
91
137
  <h2>[1.9.0] - 2023-07-07</h2>
92
138
  </a>
93
139
 
94
- <a href="#added-3" id="added-3" style="color: inherit; text-decoration: none;">
140
+ <a href="#added-4" id="added-4" style="color: inherit; text-decoration: none;">
95
141
  <h3>Added</h3>
96
142
  </a>
97
143
  <ul>
@@ -113,14 +159,14 @@ transpile this lib yourself</li>
113
159
  <h2>[1.8.0] - 2023-06-03</h2>
114
160
  </a>
115
161
 
116
- <a href="#added-4" id="added-4" style="color: inherit; text-decoration: none;">
162
+ <a href="#added-5" id="added-5" style="color: inherit; text-decoration: none;">
117
163
  <h3>Added</h3>
118
164
  </a>
119
165
  <ul>
120
166
  <li><code>formatDate</code> method</li>
121
167
  </ul>
122
168
 
123
- <a href="#dev-1" id="dev-1" style="color: inherit; text-decoration: none;">
169
+ <a href="#dev-2" id="dev-2" style="color: inherit; text-decoration: none;">
124
170
  <h3>Dev</h3>
125
171
  </a>
126
172
  <ul>
@@ -131,7 +177,7 @@ transpile this lib yourself</li>
131
177
  <h2>[1.7.0] - 2023-05-22</h2>
132
178
  </a>
133
179
 
134
- <a href="#added-5" id="added-5" style="color: inherit; text-decoration: none;">
180
+ <a href="#added-6" id="added-6" style="color: inherit; text-decoration: none;">
135
181
  <h3>Added</h3>
136
182
  </a>
137
183
  <ul>
@@ -142,7 +188,7 @@ transpile this lib yourself</li>
142
188
  <h2>[1.6.0] - 2023-05-12</h2>
143
189
  </a>
144
190
 
145
- <a href="#added-6" id="added-6" style="color: inherit; text-decoration: none;">
191
+ <a href="#added-7" id="added-7" style="color: inherit; text-decoration: none;">
146
192
  <h3>Added</h3>
147
193
  </a>
148
194
  <ul>
@@ -153,7 +199,7 @@ transpile this lib yourself</li>
153
199
  <h2>[1.5.0] - 2023-05-12</h2>
154
200
  </a>
155
201
 
156
- <a href="#added-7" id="added-7" style="color: inherit; text-decoration: none;">
202
+ <a href="#added-8" id="added-8" style="color: inherit; text-decoration: none;">
157
203
  <h3>Added</h3>
158
204
  </a>
159
205
  <ul>
@@ -165,7 +211,7 @@ transpile this lib yourself</li>
165
211
  <h2>[1.4.0] - 2023-05-11</h2>
166
212
  </a>
167
213
 
168
- <a href="#added-8" id="added-8" style="color: inherit; text-decoration: none;">
214
+ <a href="#added-9" id="added-9" style="color: inherit; text-decoration: none;">
169
215
  <h3>Added</h3>
170
216
  </a>
171
217
  <ul>
@@ -178,14 +224,14 @@ transpile this lib yourself</li>
178
224
  <h2>[1.3.0] - 2023-05-07</h2>
179
225
  </a>
180
226
 
181
- <a href="#added-9" id="added-9" style="color: inherit; text-decoration: none;">
227
+ <a href="#added-10" id="added-10" style="color: inherit; text-decoration: none;">
182
228
  <h3>Added</h3>
183
229
  </a>
184
230
  <ul>
185
231
  <li><code>safe</code> method</li>
186
232
  </ul>
187
233
 
188
- <a href="#dev-2" id="dev-2" style="color: inherit; text-decoration: none;">
234
+ <a href="#dev-3" id="dev-3" style="color: inherit; text-decoration: none;">
189
235
  <h3>Dev</h3>
190
236
  </a>
191
237
  <ul>
@@ -197,7 +243,7 @@ transpile this lib yourself</li>
197
243
  <h2>[1.2.0] - 2023-03-01</h2>
198
244
  </a>
199
245
 
200
- <a href="#added-10" id="added-10" style="color: inherit; text-decoration: none;">
246
+ <a href="#added-11" id="added-11" style="color: inherit; text-decoration: none;">
201
247
  <h3>Added</h3>
202
248
  </a>
203
249
  <ul>
@@ -213,7 +259,7 @@ transpile this lib yourself</li>
213
259
  <h2>[1.1.0] - 2023-02-20</h2>
214
260
  </a>
215
261
 
216
- <a href="#added-11" id="added-11" style="color: inherit; text-decoration: none;">
262
+ <a href="#added-12" id="added-12" style="color: inherit; text-decoration: none;">
217
263
  <h3>Added</h3>
218
264
  </a>
219
265
  <ul>
@@ -221,7 +267,7 @@ transpile this lib yourself</li>
221
267
  <li><code>occurrences</code> method</li>
222
268
  </ul>
223
269
 
224
- <a href="#changed" id="changed" style="color: inherit; text-decoration: none;">
270
+ <a href="#changed-1" id="changed-1" style="color: inherit; text-decoration: none;">
225
271
  <h3>Changed</h3>
226
272
  </a>
227
273
  <ul>
@@ -232,14 +278,14 @@ transpile this lib yourself</li>
232
278
  <h2>[1.0.0] - 2023-02-19</h2>
233
279
  </a>
234
280
 
235
- <a href="#added-12" id="added-12" style="color: inherit; text-decoration: none;">
281
+ <a href="#added-13" id="added-13" style="color: inherit; text-decoration: none;">
236
282
  <h3>Added</h3>
237
283
  </a>
238
284
  <ul>
239
285
  <li><code>isPlainObject</code> method</li>
240
286
  </ul>
241
287
 
242
- <a href="#breaking-2" id="breaking-2" style="color: inherit; text-decoration: none;">
288
+ <a href="#breaking-3" id="breaking-3" style="color: inherit; text-decoration: none;">
243
289
  <h3>Breaking</h3>
244
290
  </a>
245
291
  <ul>
@@ -252,7 +298,7 @@ transpile this lib yourself</li>
252
298
  <li>replaced <code>mapValues.REMOVE</code> with <code>mapValuesUNSET</code></li>
253
299
  </ul>
254
300
 
255
- <a href="#changed-1" id="changed-1" style="color: inherit; text-decoration: none;">
301
+ <a href="#changed-2" id="changed-2" style="color: inherit; text-decoration: none;">
256
302
  <h3>Changed</h3>
257
303
  </a>
258
304
  <ul>
@@ -260,7 +306,7 @@ transpile this lib yourself</li>
260
306
  <li>in jsdoc added a warning to get/set and family about using them with TS</li>
261
307
  </ul>
262
308
 
263
- <a href="#dev-3" id="dev-3" style="color: inherit; text-decoration: none;">
309
+ <a href="#dev-4" id="dev-4" style="color: inherit; text-decoration: none;">
264
310
  <h3>Dev</h3>
265
311
  </a>
266
312
  <ul>
@@ -274,7 +320,7 @@ transpile this lib yourself</li>
274
320
  <h2>[0.24.1] - 2022-11-08</h2>
275
321
  </a>
276
322
 
277
- <a href="#dev-4" id="dev-4" style="color: inherit; text-decoration: none;">
323
+ <a href="#dev-5" id="dev-5" style="color: inherit; text-decoration: none;">
278
324
  <h3>Dev</h3>
279
325
  </a>
280
326
  <ul>
@@ -286,14 +332,14 @@ transpile this lib yourself</li>
286
332
  <h2>[0.24.0] - 2022-09-23</h2>
287
333
  </a>
288
334
 
289
- <a href="#added-13" id="added-13" style="color: inherit; text-decoration: none;">
335
+ <a href="#added-14" id="added-14" style="color: inherit; text-decoration: none;">
290
336
  <h3>Added</h3>
291
337
  </a>
292
338
  <ul>
293
339
  <li><code>pull</code> method</li>
294
340
  </ul>
295
341
 
296
- <a href="#changed-2" id="changed-2" style="color: inherit; text-decoration: none;">
342
+ <a href="#changed-3" id="changed-3" style="color: inherit; text-decoration: none;">
297
343
  <h3>Changed</h3>
298
344
  </a>
299
345
  <ul>
@@ -334,7 +380,7 @@ transpile this lib yourself</li>
334
380
  <h2>[0.23.0] - 2022-07-17</h2>
335
381
  </a>
336
382
 
337
- <a href="#added-14" id="added-14" style="color: inherit; text-decoration: none;">
383
+ <a href="#added-15" id="added-15" style="color: inherit; text-decoration: none;">
338
384
  <h3>Added</h3>
339
385
  </a>
340
386
  <ul>
@@ -345,7 +391,7 @@ transpile this lib yourself</li>
345
391
  <h2>[0.22.0] - 2022-07-16</h2>
346
392
  </a>
347
393
 
348
- <a href="#added-15" id="added-15" style="color: inherit; text-decoration: none;">
394
+ <a href="#added-16" id="added-16" style="color: inherit; text-decoration: none;">
349
395
  <h3>Added</h3>
350
396
  </a>
351
397
  <ul>
@@ -363,7 +409,7 @@ transpile this lib yourself</li>
363
409
  <h2>[0.21.0] - 2022-07-08</h2>
364
410
  </a>
365
411
 
366
- <a href="#added-16" id="added-16" style="color: inherit; text-decoration: none;">
412
+ <a href="#added-17" id="added-17" style="color: inherit; text-decoration: none;">
367
413
  <h3>Added</h3>
368
414
  </a>
369
415
  <ul>
@@ -374,7 +420,7 @@ transpile this lib yourself</li>
374
420
  <h2>[0.20.0] - 2022-07-03</h2>
375
421
  </a>
376
422
 
377
- <a href="#added-17" id="added-17" style="color: inherit; text-decoration: none;">
423
+ <a href="#added-18" id="added-18" style="color: inherit; text-decoration: none;">
378
424
  <h3>Added</h3>
379
425
  </a>
380
426
  <ul>
@@ -396,14 +442,14 @@ transpile this lib yourself</li>
396
442
  <h2>[0.19.0] - 2022-04-27</h2>
397
443
  </a>
398
444
 
399
- <a href="#added-18" id="added-18" style="color: inherit; text-decoration: none;">
445
+ <a href="#added-19" id="added-19" style="color: inherit; text-decoration: none;">
400
446
  <h3>Added</h3>
401
447
  </a>
402
448
  <ul>
403
449
  <li><code>scale</code>, <code>truthy</code>, <code>waitFor</code>, <code>cap</code> methods</li>
404
450
  </ul>
405
451
 
406
- <a href="#changed-3" id="changed-3" style="color: inherit; text-decoration: none;">
452
+ <a href="#changed-4" id="changed-4" style="color: inherit; text-decoration: none;">
407
453
  <h3>Changed</h3>
408
454
  </a>
409
455
  <ul>
@@ -411,7 +457,7 @@ transpile this lib yourself</li>
411
457
  <li>added/improved jsdoc to <code>mapAsync</code>, <code>match</code>, <code>merge</code>, <code>noop</code>, <code>rethrow</code></li>
412
458
  </ul>
413
459
 
414
- <a href="#breaking-3" id="breaking-3" style="color: inherit; text-decoration: none;">
460
+ <a href="#breaking-4" id="breaking-4" style="color: inherit; text-decoration: none;">
415
461
  <h3>Breaking</h3>
416
462
  </a>
417
463
  <ul>
@@ -422,7 +468,7 @@ transpile this lib yourself</li>
422
468
  <h2>[0.18.0] - 2021-12-04</h2>
423
469
  </a>
424
470
 
425
- <a href="#added-19" id="added-19" style="color: inherit; text-decoration: none;">
471
+ <a href="#added-20" id="added-20" style="color: inherit; text-decoration: none;">
426
472
  <h3>Added</h3>
427
473
  </a>
428
474
  <ul>
@@ -445,14 +491,14 @@ transpile this lib yourself</li>
445
491
  <h2>[0.17.0] - 2021-10-31</h2>
446
492
  </a>
447
493
 
448
- <a href="#added-20" id="added-20" style="color: inherit; text-decoration: none;">
494
+ <a href="#added-21" id="added-21" style="color: inherit; text-decoration: none;">
449
495
  <h3>Added</h3>
450
496
  </a>
451
497
  <ul>
452
498
  <li><code>merge</code> method</li>
453
499
  </ul>
454
500
 
455
- <a href="#changed-4" id="changed-4" style="color: inherit; text-decoration: none;">
501
+ <a href="#changed-5" id="changed-5" style="color: inherit; text-decoration: none;">
456
502
  <h3>Changed</h3>
457
503
  </a>
458
504
  <ul>
@@ -463,7 +509,7 @@ transpile this lib yourself</li>
463
509
  <h2>[0.16.0] - 2021-09-24</h2>
464
510
  </a>
465
511
 
466
- <a href="#added-21" id="added-21" style="color: inherit; text-decoration: none;">
512
+ <a href="#added-22" id="added-22" style="color: inherit; text-decoration: none;">
467
513
  <h3>Added</h3>
468
514
  </a>
469
515
  <ul>
@@ -474,14 +520,14 @@ transpile this lib yourself</li>
474
520
  <h2>[0.15.0] - 2021-07-04</h2>
475
521
  </a>
476
522
 
477
- <a href="#added-22" id="added-22" style="color: inherit; text-decoration: none;">
523
+ <a href="#added-23" id="added-23" style="color: inherit; text-decoration: none;">
478
524
  <h3>Added</h3>
479
525
  </a>
480
526
  <ul>
481
527
  <li><code>seq</code> with early break mode</li>
482
528
  </ul>
483
529
 
484
- <a href="#changed-5" id="changed-5" style="color: inherit; text-decoration: none;">
530
+ <a href="#changed-6" id="changed-6" style="color: inherit; text-decoration: none;">
485
531
  <h3>Changed</h3>
486
532
  </a>
487
533
  <ul>
@@ -492,7 +538,7 @@ transpile this lib yourself</li>
492
538
  <h2>[0.14.1] - 2021-06-13</h2>
493
539
  </a>
494
540
 
495
- <a href="#changed-6" id="changed-6" style="color: inherit; text-decoration: none;">
541
+ <a href="#changed-7" id="changed-7" style="color: inherit; text-decoration: none;">
496
542
  <h3>Changed</h3>
497
543
  </a>
498
544
  <ul>
@@ -503,14 +549,14 @@ transpile this lib yourself</li>
503
549
  <h2>[0.14.0] - 2021-06-05</h2>
504
550
  </a>
505
551
 
506
- <a href="#changed-7" id="changed-7" style="color: inherit; text-decoration: none;">
552
+ <a href="#changed-8" id="changed-8" style="color: inherit; text-decoration: none;">
507
553
  <h3>Changed</h3>
508
554
  </a>
509
555
  <ul>
510
556
  <li>upgraded typings for sortBy</li>
511
557
  </ul>
512
558
 
513
- <a href="#added-23" id="added-23" style="color: inherit; text-decoration: none;">
559
+ <a href="#added-24" id="added-24" style="color: inherit; text-decoration: none;">
514
560
  <h3>Added</h3>
515
561
  </a>
516
562
  <ul>
@@ -521,7 +567,7 @@ transpile this lib yourself</li>
521
567
  <h2>[0.13.2] - 2021-05-16</h2>
522
568
  </a>
523
569
 
524
- <a href="#changed-8" id="changed-8" style="color: inherit; text-decoration: none;">
570
+ <a href="#changed-9" id="changed-9" style="color: inherit; text-decoration: none;">
525
571
  <h3>Changed</h3>
526
572
  </a>
527
573
  <ul>
@@ -532,14 +578,14 @@ transpile this lib yourself</li>
532
578
  <h2>[0.13.1] - 2021-04-14</h2>
533
579
  </a>
534
580
 
535
- <a href="#changed-9" id="changed-9" style="color: inherit; text-decoration: none;">
581
+ <a href="#changed-10" id="changed-10" style="color: inherit; text-decoration: none;">
536
582
  <h3>Changed</h3>
537
583
  </a>
538
584
  <ul>
539
585
  <li>upgraded typings for mapValues</li>
540
586
  </ul>
541
587
 
542
- <a href="#dev-5" id="dev-5" style="color: inherit; text-decoration: none;">
588
+ <a href="#dev-6" id="dev-6" style="color: inherit; text-decoration: none;">
543
589
  <h3>Dev</h3>
544
590
  </a>
545
591
  <ul>
@@ -552,7 +598,7 @@ transpile this lib yourself</li>
552
598
  <h2>[0.13.0] - 2021-02-03</h2>
553
599
  </a>
554
600
 
555
- <a href="#added-24" id="added-24" style="color: inherit; text-decoration: none;">
601
+ <a href="#added-25" id="added-25" style="color: inherit; text-decoration: none;">
556
602
  <h3>Added</h3>
557
603
  </a>
558
604
  <ul>
@@ -565,7 +611,7 @@ transpile this lib yourself</li>
565
611
  <h2>[0.12.0] - 2021-01-19</h2>
566
612
  </a>
567
613
 
568
- <a href="#added-25" id="added-25" style="color: inherit; text-decoration: none;">
614
+ <a href="#added-26" id="added-26" style="color: inherit; text-decoration: none;">
569
615
  <h3>Added</h3>
570
616
  </a>
571
617
  <ul>
@@ -576,7 +622,7 @@ transpile this lib yourself</li>
576
622
  <h2>[0.11.0-beta.2] - 2021-01-08</h2>
577
623
  </a>
578
624
 
579
- <a href="#dev-6" id="dev-6" style="color: inherit; text-decoration: none;">
625
+ <a href="#dev-7" id="dev-7" style="color: inherit; text-decoration: none;">
580
626
  <h3>Dev</h3>
581
627
  </a>
582
628
  <ul>
@@ -585,7 +631,7 @@ transpile this lib yourself</li>
585
631
  <li>replaced jsdoc with typedoc</li>
586
632
  </ul>
587
633
 
588
- <a href="#changed-10" id="changed-10" style="color: inherit; text-decoration: none;">
634
+ <a href="#changed-11" id="changed-11" style="color: inherit; text-decoration: none;">
589
635
  <h3>Changed</h3>
590
636
  </a>
591
637
  <ul>
@@ -607,7 +653,7 @@ transpile this lib yourself</li>
607
653
  <h2>[0.10.0] - 2020-09-14</h2>
608
654
  </a>
609
655
 
610
- <a href="#added-26" id="added-26" style="color: inherit; text-decoration: none;">
656
+ <a href="#added-27" id="added-27" style="color: inherit; text-decoration: none;">
611
657
  <h3>Added</h3>
612
658
  </a>
613
659
  <ul>
@@ -618,7 +664,7 @@ transpile this lib yourself</li>
618
664
  <h2>[0.9.0] - 2020-07-09</h2>
619
665
  </a>
620
666
 
621
- <a href="#added-27" id="added-27" style="color: inherit; text-decoration: none;">
667
+ <a href="#added-28" id="added-28" style="color: inherit; text-decoration: none;">
622
668
  <h3>Added</h3>
623
669
  </a>
624
670
  <ul>
@@ -636,7 +682,7 @@ transpile this lib yourself</li>
636
682
  <li>CommonJS code still not working properly</li>
637
683
  </ul>
638
684
 
639
- <a href="#changed-11" id="changed-11" style="color: inherit; text-decoration: none;">
685
+ <a href="#changed-12" id="changed-12" style="color: inherit; text-decoration: none;">
640
686
  <h3>Changed</h3>
641
687
  </a>
642
688
  <ul>
@@ -659,14 +705,14 @@ transpile this lib yourself</li>
659
705
  <h2>[0.7.0] - 2020-03-10</h2>
660
706
  </a>
661
707
 
662
- <a href="#added-28" id="added-28" style="color: inherit; text-decoration: none;">
708
+ <a href="#added-29" id="added-29" style="color: inherit; text-decoration: none;">
663
709
  <h3>Added</h3>
664
710
  </a>
665
711
  <ul>
666
712
  <li>native ESM support</li>
667
713
  </ul>
668
714
 
669
- <a href="#changed-12" id="changed-12" style="color: inherit; text-decoration: none;">
715
+ <a href="#changed-13" id="changed-13" style="color: inherit; text-decoration: none;">
670
716
  <h3>Changed</h3>
671
717
  </a>
672
718
  <ul>
@@ -718,14 +764,14 @@ transpile this lib yourself</li>
718
764
  <h2>[0.6.0] - 2019-05-12</h2>
719
765
  </a>
720
766
 
721
- <a href="#added-29" id="added-29" style="color: inherit; text-decoration: none;">
767
+ <a href="#added-30" id="added-30" style="color: inherit; text-decoration: none;">
722
768
  <h3>Added</h3>
723
769
  </a>
724
770
  <ul>
725
771
  <li><code>pick</code> and <code>omit</code> methods</li>
726
772
  </ul>
727
773
 
728
- <a href="#changed-13" id="changed-13" style="color: inherit; text-decoration: none;">
774
+ <a href="#changed-14" id="changed-14" style="color: inherit; text-decoration: none;">
729
775
  <h3>Changed</h3>
730
776
  </a>
731
777
  <ul>
@@ -736,7 +782,7 @@ transpile this lib yourself</li>
736
782
  <h2>[0.5.0] - 2019-04-09</h2>
737
783
  </a>
738
784
 
739
- <a href="#added-30" id="added-30" style="color: inherit; text-decoration: none;">
785
+ <a href="#added-31" id="added-31" style="color: inherit; text-decoration: none;">
740
786
  <h3>Added</h3>
741
787
  </a>
742
788
  <ul>
@@ -758,7 +804,7 @@ transpile this lib yourself</li>
758
804
  <h2>[0.4.0] - 2019-01-30</h2>
759
805
  </a>
760
806
 
761
- <a href="#added-31" id="added-31" style="color: inherit; text-decoration: none;">
807
+ <a href="#added-32" id="added-32" style="color: inherit; text-decoration: none;">
762
808
  <h3>Added</h3>
763
809
  </a>
764
810
  <ul>
@@ -788,14 +834,14 @@ transpile this lib yourself</li>
788
834
  <li>disabled removing unused labels in tests</li>
789
835
  </ul>
790
836
 
791
- <a href="#changed-14" id="changed-14" style="color: inherit; text-decoration: none;">
837
+ <a href="#changed-15" id="changed-15" style="color: inherit; text-decoration: none;">
792
838
  <h3>Changed</h3>
793
839
  </a>
794
840
  <ul>
795
841
  <li>improved one <code>set</code> test</li>
796
842
  </ul>
797
843
 
798
- <a href="#added-32" id="added-32" style="color: inherit; text-decoration: none;">
844
+ <a href="#added-33" id="added-33" style="color: inherit; text-decoration: none;">
799
845
  <h3>Added</h3>
800
846
  </a>
801
847
  <ul>
@@ -806,7 +852,7 @@ transpile this lib yourself</li>
806
852
  <h2>[0.2.0] 2018-12-09</h2>
807
853
  </a>
808
854
 
809
- <a href="#added-33" id="added-33" style="color: inherit; text-decoration: none;">
855
+ <a href="#added-34" id="added-34" style="color: inherit; text-decoration: none;">
810
856
  <h3>Added</h3>
811
857
  </a>
812
858
  <ul>
@@ -833,7 +879,7 @@ transpile this lib yourself</li>
833
879
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
834
880
  <div class="tsd-accordion-details">
835
881
  <ul>
836
- <li class="current"><a href="../modules.html">@ezez/utils -<wbr/> v3.0.0</a>
882
+ <li class="current"><a href="../modules.html">@ezez/utils -<wbr/> v4.0.0</a>
837
883
  <ul>
838
884
  <li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="Introduction.html">Introduction</a></li>
839
885
  <li class="current selected pages-entry pages-entry-page pages-entry-depth-1"><a href="CHANGELOG.html">Changelog</a></li></ul></li></ul></div></details></nav>
@@ -914,6 +960,9 @@ transpile this lib yourself</li>
914
960
  <li class="tsd-kind-function"><a href="../functions/stripSuffix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Suffix</a></li>
915
961
  <li class="tsd-kind-function"><a href="../functions/throttle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>throttle</a></li>
916
962
  <li class="tsd-kind-function"><a href="../functions/toggle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>toggle</a></li>
963
+ <li class="tsd-kind-function"><a href="../functions/trim.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim</a></li>
964
+ <li class="tsd-kind-function"><a href="../functions/trimEnd.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>End</a></li>
965
+ <li class="tsd-kind-function"><a href="../functions/trimStart.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>Start</a></li>
917
966
  <li class="tsd-kind-function"><a href="../functions/truthy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>truthy</a></li>
918
967
  <li class="tsd-kind-function"><a href="../functions/unique.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>unique</a></li>
919
968
  <li class="tsd-kind-function"><a href="../functions/wait.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>wait</a></li>