@bemoje/iter 1.2.1 → 1.2.3

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 (138) hide show
  1. package/README.md +41 -15
  2. package/lib/index.cjs +5 -18
  3. package/lib/index.d.cts +524 -33
  4. package/lib/index.d.ts +524 -33
  5. package/lib/index.js +1 -14
  6. package/package.json +20 -472
  7. package/lib/filterArray.cjs +0 -20
  8. package/lib/filterArray.d.cts +0 -18
  9. package/lib/filterArray.d.ts +0 -18
  10. package/lib/filterArray.js +0 -18
  11. package/lib/filterIterable.cjs +0 -14
  12. package/lib/filterIterable.d.cts +0 -18
  13. package/lib/filterIterable.d.ts +0 -18
  14. package/lib/filterIterable.js +0 -12
  15. package/lib/filterIterableEntries.cjs +0 -12
  16. package/lib/filterIterableEntries.d.cts +0 -18
  17. package/lib/filterIterableEntries.d.ts +0 -18
  18. package/lib/filterIterableEntries.js +0 -10
  19. package/lib/filterIterableKeys.cjs +0 -14
  20. package/lib/filterIterableKeys.d.cts +0 -18
  21. package/lib/filterIterableKeys.d.ts +0 -18
  22. package/lib/filterIterableKeys.js +0 -12
  23. package/lib/filterIterableValues.cjs +0 -14
  24. package/lib/filterIterableValues.d.cts +0 -18
  25. package/lib/filterIterableValues.d.ts +0 -18
  26. package/lib/filterIterableValues.js +0 -12
  27. package/lib/filterMap.cjs +0 -18
  28. package/lib/filterMap.d.cts +0 -18
  29. package/lib/filterMap.d.ts +0 -18
  30. package/lib/filterMap.js +0 -16
  31. package/lib/filterObject.cjs +0 -24
  32. package/lib/filterObject.d.cts +0 -18
  33. package/lib/filterObject.d.ts +0 -18
  34. package/lib/filterObject.js +0 -22
  35. package/lib/filterSet.cjs +0 -18
  36. package/lib/filterSet.d.cts +0 -18
  37. package/lib/filterSet.d.ts +0 -18
  38. package/lib/filterSet.js +0 -16
  39. package/lib/forEachArray.cjs +0 -16
  40. package/lib/forEachArray.d.cts +0 -17
  41. package/lib/forEachArray.d.ts +0 -17
  42. package/lib/forEachArray.js +0 -14
  43. package/lib/forEachIterable.cjs +0 -14
  44. package/lib/forEachIterable.d.cts +0 -17
  45. package/lib/forEachIterable.d.ts +0 -17
  46. package/lib/forEachIterable.js +0 -12
  47. package/lib/forEachIterableEntries.cjs +0 -14
  48. package/lib/forEachIterableEntries.d.cts +0 -6
  49. package/lib/forEachIterableEntries.d.ts +0 -6
  50. package/lib/forEachIterableEntries.js +0 -12
  51. package/lib/forEachIterableKeys.cjs +0 -14
  52. package/lib/forEachIterableKeys.d.cts +0 -17
  53. package/lib/forEachIterableKeys.d.ts +0 -17
  54. package/lib/forEachIterableKeys.js +0 -12
  55. package/lib/forEachIterableValues.cjs +0 -14
  56. package/lib/forEachIterableValues.d.cts +0 -17
  57. package/lib/forEachIterableValues.d.ts +0 -17
  58. package/lib/forEachIterableValues.js +0 -12
  59. package/lib/forEachMap.cjs +0 -14
  60. package/lib/forEachMap.d.cts +0 -17
  61. package/lib/forEachMap.d.ts +0 -17
  62. package/lib/forEachMap.js +0 -12
  63. package/lib/forEachObject.cjs +0 -20
  64. package/lib/forEachObject.d.cts +0 -17
  65. package/lib/forEachObject.d.ts +0 -17
  66. package/lib/forEachObject.js +0 -18
  67. package/lib/forEachSet.cjs +0 -14
  68. package/lib/forEachSet.d.cts +0 -17
  69. package/lib/forEachSet.d.ts +0 -17
  70. package/lib/forEachSet.js +0 -12
  71. package/lib/mapArray.cjs +0 -18
  72. package/lib/mapArray.d.cts +0 -17
  73. package/lib/mapArray.d.ts +0 -17
  74. package/lib/mapArray.js +0 -16
  75. package/lib/mapIterable.cjs +0 -14
  76. package/lib/mapIterable.d.cts +0 -17
  77. package/lib/mapIterable.d.ts +0 -17
  78. package/lib/mapIterable.js +0 -12
  79. package/lib/mapIterableEntries.cjs +0 -12
  80. package/lib/mapIterableEntries.d.cts +0 -17
  81. package/lib/mapIterableEntries.d.ts +0 -17
  82. package/lib/mapIterableEntries.js +0 -10
  83. package/lib/mapIterableKeys.cjs +0 -17
  84. package/lib/mapIterableKeys.d.cts +0 -17
  85. package/lib/mapIterableKeys.d.ts +0 -17
  86. package/lib/mapIterableKeys.js +0 -15
  87. package/lib/mapIterableValues.cjs +0 -17
  88. package/lib/mapIterableValues.d.cts +0 -17
  89. package/lib/mapIterableValues.d.ts +0 -17
  90. package/lib/mapIterableValues.js +0 -15
  91. package/lib/mapMap.cjs +0 -16
  92. package/lib/mapMap.d.cts +0 -17
  93. package/lib/mapMap.d.ts +0 -17
  94. package/lib/mapMap.js +0 -14
  95. package/lib/mapObject.cjs +0 -22
  96. package/lib/mapObject.d.cts +0 -17
  97. package/lib/mapObject.d.ts +0 -17
  98. package/lib/mapObject.js +0 -20
  99. package/lib/mapSet.cjs +0 -16
  100. package/lib/mapSet.d.cts +0 -17
  101. package/lib/mapSet.d.ts +0 -17
  102. package/lib/mapSet.js +0 -14
  103. package/lib/reduceArray.cjs +0 -18
  104. package/lib/reduceArray.d.cts +0 -18
  105. package/lib/reduceArray.d.ts +0 -18
  106. package/lib/reduceArray.js +0 -16
  107. package/lib/reduceIterable.cjs +0 -16
  108. package/lib/reduceIterable.d.cts +0 -18
  109. package/lib/reduceIterable.d.ts +0 -18
  110. package/lib/reduceIterable.js +0 -14
  111. package/lib/reduceIterableEntries.cjs +0 -16
  112. package/lib/reduceIterableEntries.d.cts +0 -18
  113. package/lib/reduceIterableEntries.d.ts +0 -18
  114. package/lib/reduceIterableEntries.js +0 -14
  115. package/lib/reduceIterableKeys.cjs +0 -16
  116. package/lib/reduceIterableKeys.d.cts +0 -18
  117. package/lib/reduceIterableKeys.d.ts +0 -18
  118. package/lib/reduceIterableKeys.js +0 -14
  119. package/lib/reduceIterableValues.cjs +0 -16
  120. package/lib/reduceIterableValues.d.cts +0 -18
  121. package/lib/reduceIterableValues.d.ts +0 -18
  122. package/lib/reduceIterableValues.js +0 -14
  123. package/lib/reduceMap.cjs +0 -16
  124. package/lib/reduceMap.d.cts +0 -18
  125. package/lib/reduceMap.d.ts +0 -18
  126. package/lib/reduceMap.js +0 -14
  127. package/lib/reduceObject.cjs +0 -22
  128. package/lib/reduceObject.d.cts +0 -18
  129. package/lib/reduceObject.d.ts +0 -18
  130. package/lib/reduceObject.js +0 -20
  131. package/lib/reduceSet.cjs +0 -16
  132. package/lib/reduceSet.d.cts +0 -18
  133. package/lib/reduceSet.d.ts +0 -18
  134. package/lib/reduceSet.js +0 -14
  135. package/lib/toObjectIterable.cjs +0 -20
  136. package/lib/toObjectIterable.d.cts +0 -7
  137. package/lib/toObjectIterable.d.ts +0 -7
  138. package/lib/toObjectIterable.js +0 -18
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@bemoje/iter",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Utility functions for working with iterables, especially map-like key-value pair structures.",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "dependencies": {
11
+ "iter-tools": "^7.5.4"
12
+ },
5
13
  "keywords": [
6
14
  "iter",
7
15
  "iterable",
@@ -11,17 +19,15 @@
11
19
  "utilities",
12
20
  "typescript"
13
21
  ],
14
- "dependencies": {
15
- "iter-tools": "^7.5.4"
16
- },
17
- "type": "module",
18
- "sideEffects": false,
19
- "publishConfig": {
20
- "access": "public"
21
- },
22
22
  "main": "./lib/index.cjs",
23
23
  "module": "./lib/index.js",
24
24
  "types": "./lib/index.d.ts",
25
+ "files": [
26
+ "./lib/index.js",
27
+ "./lib/index.d.ts",
28
+ "./lib/index.cjs",
29
+ "./lib/index.d.cts"
30
+ ],
25
31
  "exports": {
26
32
  ".": {
27
33
  "import": {
@@ -33,475 +39,17 @@
33
39
  "default": "./lib/index.cjs"
34
40
  }
35
41
  },
36
- "./filterArray": {
37
- "import": {
38
- "types": "./lib/filterArray.d.ts",
39
- "default": "./lib/filterArray.js"
40
- },
41
- "require": {
42
- "types": "./lib/filterArray.d.cts",
43
- "default": "./lib/filterArray.cjs"
44
- }
45
- },
46
- "./filterIterable": {
47
- "import": {
48
- "types": "./lib/filterIterable.d.ts",
49
- "default": "./lib/filterIterable.js"
50
- },
51
- "require": {
52
- "types": "./lib/filterIterable.d.cts",
53
- "default": "./lib/filterIterable.cjs"
54
- }
55
- },
56
- "./filterIterableEntries": {
57
- "import": {
58
- "types": "./lib/filterIterableEntries.d.ts",
59
- "default": "./lib/filterIterableEntries.js"
60
- },
61
- "require": {
62
- "types": "./lib/filterIterableEntries.d.cts",
63
- "default": "./lib/filterIterableEntries.cjs"
64
- }
65
- },
66
- "./filterIterableKeys": {
67
- "import": {
68
- "types": "./lib/filterIterableKeys.d.ts",
69
- "default": "./lib/filterIterableKeys.js"
70
- },
71
- "require": {
72
- "types": "./lib/filterIterableKeys.d.cts",
73
- "default": "./lib/filterIterableKeys.cjs"
74
- }
75
- },
76
- "./filterIterableValues": {
77
- "import": {
78
- "types": "./lib/filterIterableValues.d.ts",
79
- "default": "./lib/filterIterableValues.js"
80
- },
81
- "require": {
82
- "types": "./lib/filterIterableValues.d.cts",
83
- "default": "./lib/filterIterableValues.cjs"
84
- }
85
- },
86
- "./filterMap": {
87
- "import": {
88
- "types": "./lib/filterMap.d.ts",
89
- "default": "./lib/filterMap.js"
90
- },
91
- "require": {
92
- "types": "./lib/filterMap.d.cts",
93
- "default": "./lib/filterMap.cjs"
94
- }
95
- },
96
- "./filterObject": {
97
- "import": {
98
- "types": "./lib/filterObject.d.ts",
99
- "default": "./lib/filterObject.js"
100
- },
101
- "require": {
102
- "types": "./lib/filterObject.d.cts",
103
- "default": "./lib/filterObject.cjs"
104
- }
105
- },
106
- "./filterSet": {
107
- "import": {
108
- "types": "./lib/filterSet.d.ts",
109
- "default": "./lib/filterSet.js"
110
- },
111
- "require": {
112
- "types": "./lib/filterSet.d.cts",
113
- "default": "./lib/filterSet.cjs"
114
- }
115
- },
116
- "./forEachArray": {
117
- "import": {
118
- "types": "./lib/forEachArray.d.ts",
119
- "default": "./lib/forEachArray.js"
120
- },
121
- "require": {
122
- "types": "./lib/forEachArray.d.cts",
123
- "default": "./lib/forEachArray.cjs"
124
- }
125
- },
126
- "./forEachIterable": {
127
- "import": {
128
- "types": "./lib/forEachIterable.d.ts",
129
- "default": "./lib/forEachIterable.js"
130
- },
131
- "require": {
132
- "types": "./lib/forEachIterable.d.cts",
133
- "default": "./lib/forEachIterable.cjs"
134
- }
135
- },
136
- "./forEachIterableEntries": {
137
- "import": {
138
- "types": "./lib/forEachIterableEntries.d.ts",
139
- "default": "./lib/forEachIterableEntries.js"
140
- },
141
- "require": {
142
- "types": "./lib/forEachIterableEntries.d.cts",
143
- "default": "./lib/forEachIterableEntries.cjs"
144
- }
145
- },
146
- "./forEachIterableKeys": {
147
- "import": {
148
- "types": "./lib/forEachIterableKeys.d.ts",
149
- "default": "./lib/forEachIterableKeys.js"
150
- },
151
- "require": {
152
- "types": "./lib/forEachIterableKeys.d.cts",
153
- "default": "./lib/forEachIterableKeys.cjs"
154
- }
155
- },
156
- "./forEachIterableValues": {
157
- "import": {
158
- "types": "./lib/forEachIterableValues.d.ts",
159
- "default": "./lib/forEachIterableValues.js"
160
- },
161
- "require": {
162
- "types": "./lib/forEachIterableValues.d.cts",
163
- "default": "./lib/forEachIterableValues.cjs"
164
- }
165
- },
166
- "./forEachMap": {
167
- "import": {
168
- "types": "./lib/forEachMap.d.ts",
169
- "default": "./lib/forEachMap.js"
170
- },
171
- "require": {
172
- "types": "./lib/forEachMap.d.cts",
173
- "default": "./lib/forEachMap.cjs"
174
- }
175
- },
176
- "./forEachObject": {
177
- "import": {
178
- "types": "./lib/forEachObject.d.ts",
179
- "default": "./lib/forEachObject.js"
180
- },
181
- "require": {
182
- "types": "./lib/forEachObject.d.cts",
183
- "default": "./lib/forEachObject.cjs"
184
- }
185
- },
186
- "./forEachSet": {
187
- "import": {
188
- "types": "./lib/forEachSet.d.ts",
189
- "default": "./lib/forEachSet.js"
190
- },
191
- "require": {
192
- "types": "./lib/forEachSet.d.cts",
193
- "default": "./lib/forEachSet.cjs"
194
- }
195
- },
196
- "./mapArray": {
197
- "import": {
198
- "types": "./lib/mapArray.d.ts",
199
- "default": "./lib/mapArray.js"
200
- },
201
- "require": {
202
- "types": "./lib/mapArray.d.cts",
203
- "default": "./lib/mapArray.cjs"
204
- }
205
- },
206
- "./mapIterable": {
207
- "import": {
208
- "types": "./lib/mapIterable.d.ts",
209
- "default": "./lib/mapIterable.js"
210
- },
211
- "require": {
212
- "types": "./lib/mapIterable.d.cts",
213
- "default": "./lib/mapIterable.cjs"
214
- }
215
- },
216
- "./mapIterableEntries": {
217
- "import": {
218
- "types": "./lib/mapIterableEntries.d.ts",
219
- "default": "./lib/mapIterableEntries.js"
220
- },
221
- "require": {
222
- "types": "./lib/mapIterableEntries.d.cts",
223
- "default": "./lib/mapIterableEntries.cjs"
224
- }
225
- },
226
- "./mapIterableKeys": {
227
- "import": {
228
- "types": "./lib/mapIterableKeys.d.ts",
229
- "default": "./lib/mapIterableKeys.js"
230
- },
231
- "require": {
232
- "types": "./lib/mapIterableKeys.d.cts",
233
- "default": "./lib/mapIterableKeys.cjs"
234
- }
235
- },
236
- "./mapIterableValues": {
237
- "import": {
238
- "types": "./lib/mapIterableValues.d.ts",
239
- "default": "./lib/mapIterableValues.js"
240
- },
241
- "require": {
242
- "types": "./lib/mapIterableValues.d.cts",
243
- "default": "./lib/mapIterableValues.cjs"
244
- }
245
- },
246
- "./mapMap": {
247
- "import": {
248
- "types": "./lib/mapMap.d.ts",
249
- "default": "./lib/mapMap.js"
250
- },
251
- "require": {
252
- "types": "./lib/mapMap.d.cts",
253
- "default": "./lib/mapMap.cjs"
254
- }
255
- },
256
- "./mapObject": {
42
+ "./*": {
257
43
  "import": {
258
- "types": "./lib/mapObject.d.ts",
259
- "default": "./lib/mapObject.js"
260
- },
261
- "require": {
262
- "types": "./lib/mapObject.d.cts",
263
- "default": "./lib/mapObject.cjs"
264
- }
265
- },
266
- "./mapSet": {
267
- "import": {
268
- "types": "./lib/mapSet.d.ts",
269
- "default": "./lib/mapSet.js"
270
- },
271
- "require": {
272
- "types": "./lib/mapSet.d.cts",
273
- "default": "./lib/mapSet.cjs"
274
- }
275
- },
276
- "./reduceArray": {
277
- "import": {
278
- "types": "./lib/reduceArray.d.ts",
279
- "default": "./lib/reduceArray.js"
280
- },
281
- "require": {
282
- "types": "./lib/reduceArray.d.cts",
283
- "default": "./lib/reduceArray.cjs"
284
- }
285
- },
286
- "./reduceIterable": {
287
- "import": {
288
- "types": "./lib/reduceIterable.d.ts",
289
- "default": "./lib/reduceIterable.js"
290
- },
291
- "require": {
292
- "types": "./lib/reduceIterable.d.cts",
293
- "default": "./lib/reduceIterable.cjs"
294
- }
295
- },
296
- "./reduceIterableEntries": {
297
- "import": {
298
- "types": "./lib/reduceIterableEntries.d.ts",
299
- "default": "./lib/reduceIterableEntries.js"
300
- },
301
- "require": {
302
- "types": "./lib/reduceIterableEntries.d.cts",
303
- "default": "./lib/reduceIterableEntries.cjs"
304
- }
305
- },
306
- "./reduceIterableKeys": {
307
- "import": {
308
- "types": "./lib/reduceIterableKeys.d.ts",
309
- "default": "./lib/reduceIterableKeys.js"
310
- },
311
- "require": {
312
- "types": "./lib/reduceIterableKeys.d.cts",
313
- "default": "./lib/reduceIterableKeys.cjs"
314
- }
315
- },
316
- "./reduceIterableValues": {
317
- "import": {
318
- "types": "./lib/reduceIterableValues.d.ts",
319
- "default": "./lib/reduceIterableValues.js"
320
- },
321
- "require": {
322
- "types": "./lib/reduceIterableValues.d.cts",
323
- "default": "./lib/reduceIterableValues.cjs"
324
- }
325
- },
326
- "./reduceMap": {
327
- "import": {
328
- "types": "./lib/reduceMap.d.ts",
329
- "default": "./lib/reduceMap.js"
330
- },
331
- "require": {
332
- "types": "./lib/reduceMap.d.cts",
333
- "default": "./lib/reduceMap.cjs"
334
- }
335
- },
336
- "./reduceObject": {
337
- "import": {
338
- "types": "./lib/reduceObject.d.ts",
339
- "default": "./lib/reduceObject.js"
340
- },
341
- "require": {
342
- "types": "./lib/reduceObject.d.cts",
343
- "default": "./lib/reduceObject.cjs"
344
- }
345
- },
346
- "./reduceSet": {
347
- "import": {
348
- "types": "./lib/reduceSet.d.ts",
349
- "default": "./lib/reduceSet.js"
350
- },
351
- "require": {
352
- "types": "./lib/reduceSet.d.cts",
353
- "default": "./lib/reduceSet.cjs"
354
- }
355
- },
356
- "./toObjectIterable": {
357
- "import": {
358
- "types": "./lib/toObjectIterable.d.ts",
359
- "default": "./lib/toObjectIterable.js"
44
+ "types": "./lib/index.d.ts",
45
+ "default": "./lib/index.js"
360
46
  },
361
47
  "require": {
362
- "types": "./lib/toObjectIterable.d.cts",
363
- "default": "./lib/toObjectIterable.cjs"
48
+ "types": "./lib/index.d.cts",
49
+ "default": "./lib/index.cjs"
364
50
  }
365
51
  }
366
52
  },
367
- "files": [
368
- "./lib/index.js",
369
- "./lib/index.d.ts",
370
- "./lib/index.cjs",
371
- "./lib/index.d.cts",
372
- "./lib/filterArray.js",
373
- "./lib/filterArray.d.ts",
374
- "./lib/filterArray.cjs",
375
- "./lib/filterArray.d.cts",
376
- "./lib/filterIterable.js",
377
- "./lib/filterIterable.d.ts",
378
- "./lib/filterIterable.cjs",
379
- "./lib/filterIterable.d.cts",
380
- "./lib/filterIterableEntries.js",
381
- "./lib/filterIterableEntries.d.ts",
382
- "./lib/filterIterableEntries.cjs",
383
- "./lib/filterIterableEntries.d.cts",
384
- "./lib/filterIterableKeys.js",
385
- "./lib/filterIterableKeys.d.ts",
386
- "./lib/filterIterableKeys.cjs",
387
- "./lib/filterIterableKeys.d.cts",
388
- "./lib/filterIterableValues.js",
389
- "./lib/filterIterableValues.d.ts",
390
- "./lib/filterIterableValues.cjs",
391
- "./lib/filterIterableValues.d.cts",
392
- "./lib/filterMap.js",
393
- "./lib/filterMap.d.ts",
394
- "./lib/filterMap.cjs",
395
- "./lib/filterMap.d.cts",
396
- "./lib/filterObject.js",
397
- "./lib/filterObject.d.ts",
398
- "./lib/filterObject.cjs",
399
- "./lib/filterObject.d.cts",
400
- "./lib/filterSet.js",
401
- "./lib/filterSet.d.ts",
402
- "./lib/filterSet.cjs",
403
- "./lib/filterSet.d.cts",
404
- "./lib/forEachArray.js",
405
- "./lib/forEachArray.d.ts",
406
- "./lib/forEachArray.cjs",
407
- "./lib/forEachArray.d.cts",
408
- "./lib/forEachIterable.js",
409
- "./lib/forEachIterable.d.ts",
410
- "./lib/forEachIterable.cjs",
411
- "./lib/forEachIterable.d.cts",
412
- "./lib/forEachIterableEntries.js",
413
- "./lib/forEachIterableEntries.d.ts",
414
- "./lib/forEachIterableEntries.cjs",
415
- "./lib/forEachIterableEntries.d.cts",
416
- "./lib/forEachIterableKeys.js",
417
- "./lib/forEachIterableKeys.d.ts",
418
- "./lib/forEachIterableKeys.cjs",
419
- "./lib/forEachIterableKeys.d.cts",
420
- "./lib/forEachIterableValues.js",
421
- "./lib/forEachIterableValues.d.ts",
422
- "./lib/forEachIterableValues.cjs",
423
- "./lib/forEachIterableValues.d.cts",
424
- "./lib/forEachMap.js",
425
- "./lib/forEachMap.d.ts",
426
- "./lib/forEachMap.cjs",
427
- "./lib/forEachMap.d.cts",
428
- "./lib/forEachObject.js",
429
- "./lib/forEachObject.d.ts",
430
- "./lib/forEachObject.cjs",
431
- "./lib/forEachObject.d.cts",
432
- "./lib/forEachSet.js",
433
- "./lib/forEachSet.d.ts",
434
- "./lib/forEachSet.cjs",
435
- "./lib/forEachSet.d.cts",
436
- "./lib/mapArray.js",
437
- "./lib/mapArray.d.ts",
438
- "./lib/mapArray.cjs",
439
- "./lib/mapArray.d.cts",
440
- "./lib/mapIterable.js",
441
- "./lib/mapIterable.d.ts",
442
- "./lib/mapIterable.cjs",
443
- "./lib/mapIterable.d.cts",
444
- "./lib/mapIterableEntries.js",
445
- "./lib/mapIterableEntries.d.ts",
446
- "./lib/mapIterableEntries.cjs",
447
- "./lib/mapIterableEntries.d.cts",
448
- "./lib/mapIterableKeys.js",
449
- "./lib/mapIterableKeys.d.ts",
450
- "./lib/mapIterableKeys.cjs",
451
- "./lib/mapIterableKeys.d.cts",
452
- "./lib/mapIterableValues.js",
453
- "./lib/mapIterableValues.d.ts",
454
- "./lib/mapIterableValues.cjs",
455
- "./lib/mapIterableValues.d.cts",
456
- "./lib/mapMap.js",
457
- "./lib/mapMap.d.ts",
458
- "./lib/mapMap.cjs",
459
- "./lib/mapMap.d.cts",
460
- "./lib/mapObject.js",
461
- "./lib/mapObject.d.ts",
462
- "./lib/mapObject.cjs",
463
- "./lib/mapObject.d.cts",
464
- "./lib/mapSet.js",
465
- "./lib/mapSet.d.ts",
466
- "./lib/mapSet.cjs",
467
- "./lib/mapSet.d.cts",
468
- "./lib/reduceArray.js",
469
- "./lib/reduceArray.d.ts",
470
- "./lib/reduceArray.cjs",
471
- "./lib/reduceArray.d.cts",
472
- "./lib/reduceIterable.js",
473
- "./lib/reduceIterable.d.ts",
474
- "./lib/reduceIterable.cjs",
475
- "./lib/reduceIterable.d.cts",
476
- "./lib/reduceIterableEntries.js",
477
- "./lib/reduceIterableEntries.d.ts",
478
- "./lib/reduceIterableEntries.cjs",
479
- "./lib/reduceIterableEntries.d.cts",
480
- "./lib/reduceIterableKeys.js",
481
- "./lib/reduceIterableKeys.d.ts",
482
- "./lib/reduceIterableKeys.cjs",
483
- "./lib/reduceIterableKeys.d.cts",
484
- "./lib/reduceIterableValues.js",
485
- "./lib/reduceIterableValues.d.ts",
486
- "./lib/reduceIterableValues.cjs",
487
- "./lib/reduceIterableValues.d.cts",
488
- "./lib/reduceMap.js",
489
- "./lib/reduceMap.d.ts",
490
- "./lib/reduceMap.cjs",
491
- "./lib/reduceMap.d.cts",
492
- "./lib/reduceObject.js",
493
- "./lib/reduceObject.d.ts",
494
- "./lib/reduceObject.cjs",
495
- "./lib/reduceObject.d.cts",
496
- "./lib/reduceSet.js",
497
- "./lib/reduceSet.d.ts",
498
- "./lib/reduceSet.cjs",
499
- "./lib/reduceSet.d.cts",
500
- "./lib/toObjectIterable.js",
501
- "./lib/toObjectIterable.d.ts",
502
- "./lib/toObjectIterable.cjs",
503
- "./lib/toObjectIterable.d.cts"
504
- ],
505
53
  "repository": {
506
54
  "type": "git",
507
55
  "url": "git+https://github.com/bemoje/mono.git",
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
-
6
- // src/filterArray.ts
7
- function filterArray(array, predicate) {
8
- let index = 0;
9
- const result = [];
10
- for (const value of array) {
11
- if (predicate(value, index)) {
12
- result.push(value);
13
- }
14
- index++;
15
- }
16
- return result;
17
- }
18
- __name(filterArray, "filterArray");
19
-
20
- exports.filterArray = filterArray;
@@ -1,18 +0,0 @@
1
- /**
2
- * Filter an array based on a predicate function.
3
- *
4
- * @param array - The array to filter
5
- * @param predicate - A function that tests each element. Returns `true` to keep the element, `false` otherwise.
6
- * @returns A new array containing only the elements that satisfy the predicate
7
- *
8
- * @example
9
- * ```ts
10
- * const numbers = [1, 2, 3, 4, 5]
11
- * const evens = filterArray(numbers, (n) => n % 2 === 0)
12
- * // evens: [2, 4]
13
- * ```
14
- */
15
- declare function filterArray<V, S extends V>(array: readonly V[], predicate: (value: V, index: number) => value is S): S[];
16
- declare function filterArray<V>(array: readonly V[], predicate: (value: V, index: number) => boolean): V[];
17
-
18
- export { filterArray };
@@ -1,18 +0,0 @@
1
- /**
2
- * Filter an array based on a predicate function.
3
- *
4
- * @param array - The array to filter
5
- * @param predicate - A function that tests each element. Returns `true` to keep the element, `false` otherwise.
6
- * @returns A new array containing only the elements that satisfy the predicate
7
- *
8
- * @example
9
- * ```ts
10
- * const numbers = [1, 2, 3, 4, 5]
11
- * const evens = filterArray(numbers, (n) => n % 2 === 0)
12
- * // evens: [2, 4]
13
- * ```
14
- */
15
- declare function filterArray<V, S extends V>(array: readonly V[], predicate: (value: V, index: number) => value is S): S[];
16
- declare function filterArray<V>(array: readonly V[], predicate: (value: V, index: number) => boolean): V[];
17
-
18
- export { filterArray };
@@ -1,18 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/filterArray.ts
5
- function filterArray(array, predicate) {
6
- let index = 0;
7
- const result = [];
8
- for (const value of array) {
9
- if (predicate(value, index)) {
10
- result.push(value);
11
- }
12
- index++;
13
- }
14
- return result;
15
- }
16
- __name(filterArray, "filterArray");
17
-
18
- export { filterArray };
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var iterTools = require('iter-tools');
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- function filterIterable(collection, predicate) {
8
- return iterTools.filter((value) => {
9
- return predicate(value);
10
- }, collection);
11
- }
12
- __name(filterIterable, "filterIterable");
13
-
14
- exports.filterIterable = filterIterable;
@@ -1,18 +0,0 @@
1
- /**
2
- * Filter an iterable based on a predicate function.
3
- *
4
- * @param collection - The iterable to filter
5
- * @param predicate - A function that tests each element. Returns `true` to keep the element, `false` otherwise.
6
- * @returns An iterable containing only the elements that satisfy the predicate
7
- *
8
- * @example
9
- * ```ts
10
- * const numbers = [1, 2, 3, 4, 5]
11
- * const evens = filterIterable(numbers, (n) => n % 2 === 0)
12
- * // evens: Iterable of [2, 4]
13
- * ```
14
- */
15
- declare function filterIterable<T, S extends T>(collection: Iterable<T>, predicate: (value: T) => value is S): Iterable<S>;
16
- declare function filterIterable<T>(collection: Iterable<T>, predicate: (value: T) => boolean): Iterable<T>;
17
-
18
- export { filterIterable };
@@ -1,18 +0,0 @@
1
- /**
2
- * Filter an iterable based on a predicate function.
3
- *
4
- * @param collection - The iterable to filter
5
- * @param predicate - A function that tests each element. Returns `true` to keep the element, `false` otherwise.
6
- * @returns An iterable containing only the elements that satisfy the predicate
7
- *
8
- * @example
9
- * ```ts
10
- * const numbers = [1, 2, 3, 4, 5]
11
- * const evens = filterIterable(numbers, (n) => n % 2 === 0)
12
- * // evens: Iterable of [2, 4]
13
- * ```
14
- */
15
- declare function filterIterable<T, S extends T>(collection: Iterable<T>, predicate: (value: T) => value is S): Iterable<S>;
16
- declare function filterIterable<T>(collection: Iterable<T>, predicate: (value: T) => boolean): Iterable<T>;
17
-
18
- export { filterIterable };
@@ -1,12 +0,0 @@
1
- import { filter } from 'iter-tools';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
- function filterIterable(collection, predicate) {
6
- return filter((value) => {
7
- return predicate(value);
8
- }, collection);
9
- }
10
- __name(filterIterable, "filterIterable");
11
-
12
- export { filterIterable };
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var iterTools = require('iter-tools');
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- function filterIterableEntries(mapLike, predicate) {
8
- return iterTools.filter(predicate, mapLike);
9
- }
10
- __name(filterIterableEntries, "filterIterableEntries");
11
-
12
- exports.filterIterableEntries = filterIterableEntries;