Commit Graph

168 Commits

Author SHA1 Message Date
Hirotaka Tagawa / wafuwafu13
d6ce4a5f8a
docs(collections/README): Add sumOf (#1461) 2021-10-25 18:52:48 +02:00
Hirotaka Tagawa / wafuwafu13
04b6fe8668
feat(collections/running_reduce): support currentIndex (#1431) 2021-10-20 13:35:27 +09:00
defectivepixel
2ce4b7e6ff
feat(collections): add joinToString (#1223) 2021-10-17 20:09:49 +09:00
Hirotaka Tagawa / wafuwafu13
63dedc1ecb
docs(collections): refactor usage (#1369) 2021-10-11 13:59:58 +09:00
Hirotaka Tagawa / wafuwafu13
2e79e067ba
test(collections/running_reduce): add test case (#1320) 2021-09-28 19:34:49 +09:00
defectivepixel
b8e946ee76
feat(collections): use function overloading (#1286) 2021-09-21 15:05:51 +09:00
カワリミ人形
9a9ff4d1d6
docs(collections): replace console.assert with assertEquals (#1293) 2021-09-20 16:47:55 +09:00
defectivepixel
3aec24e4fa
docs(collections): add browser-compatibility comment (#1285) 2021-09-19 03:29:29 +09:00
ayame113
3d42fe1f22
fix(collections/maxWith,minWith): improve handling of arrays containing undefined (#1282) 2021-09-19 03:25:41 +09:00
Bartek Iwańczuk
44c326dc5b
fix: update to latest signal API changes (#1211) 2021-09-15 01:32:26 +02:00
ayame113
a911e5d23f
docs(collections): avoid using relative paths in import statements in code examples (#1227) 2021-09-13 14:46:42 +09:00
ayame113
d561b7d5c3
feat(collections): add runningReduce (#1226) 2021-09-13 14:12:11 +09:00
ayame113
c319a6de5c
fix(collections/includesValue): prevent enumerable prototype check (#1225) 2021-09-13 13:59:55 +09:00
ayame113
7f1d6780d4
chore(collections): rename _tests.ts to _test.ts (#1228) 2021-09-12 17:19:29 -04:00
Iori IKEDA
361c3e4a6a
feat(collection): add findSingle (#1166)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-13 00:04:15 +09:00
Yasser A.Idrissi
3ffd9fc5f8
feat(collections): Add associatewith (#1213) 2021-09-12 22:49:15 +09:00
defectivepixel
0fef6e3de2
feat(collections): add sample API (#1212) 2021-09-12 16:20:11 +09:00
Craig Morten
c4600fbd75
docs: correct typos (#1207) 2021-09-07 16:40:05 +09:00
defectivepixel
38faa30e9c
docs(collections): replace console.assert with assertEquals (#1206)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-06 22:43:46 +09:00
ayame113
3efa1783be
feat(collections): add slidingWindows (#1191) 2021-09-06 19:31:32 +09:00
defectivepixel
1d56e28ee6
feat(collections): add reduceGroups (#1187) 2021-09-06 19:26:26 +09:00
defectivepixel
e872b75c57
feat(collections): add maxWith (#1170)
Co-authored-by: Leon Strauss <me@lionc.de>
2021-09-04 17:39:46 +09:00
defectivepixel
ca23a1e603
feat(collections): add minWith (#1169) 2021-09-02 19:03:09 +09:00
Yasser A.Idrissi
f519c159f2
feat(collections): add dropWhile (#1185) 2021-09-02 13:25:48 +09:00
grian
a4a5a8b652
feat(collections): add includesValue (#1184) 2021-09-01 17:12:44 +09:00
Kenta Moriuchi
d3637f2e09
fix(collections): prevent prototype merge in collections/deep_merge.ts (#1197) 2021-09-01 17:08:03 +09:00
Tim Reichen
04cbe9c89b
BREAKING(collections): rename chunked -> chunk (#1098)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-01 17:05:50 +09:00
grian
2369fd682c
feat(collections): add dropLastWhile (#1193) 2021-09-01 16:01:36 +09:00
grian
7691861fa5
feat(collections): adds takeLastWhile (#1179)
Co-authored-by: evan <github@evan.lol>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-01 15:51:02 +09:00
grian
305b3647cd
feat(collections): add takeWhile (#1175)
Co-authored-by: Leon Strauss <me@lionc.de>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 17:28:08 +09:00
defectivepixel
cbfb04e05e
feat(collections): add firstNotNullishOf (#1167)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 16:30:57 +09:00
Timo
b094ea20a1
chore: fix typo in collections readme (#1190) 2021-08-31 12:57:48 +05:30
defectivepixel
ce916bddcc
feat(collections): add maxBy (#1156)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 15:29:18 +09:00
defectivepixel
5bdd9f9171
feat(collections): add minBy (#1157) 2021-08-31 15:06:12 +09:00
Hakizu
47b915dc1d
feat(collections): add minOf (#1164) 2021-08-28 03:21:35 +09:00
ayame113
0bbe95bafe
feat(collentions/sortBy): change the selector function to be called only once at the beginning (#1143)
Co-authored-by: evanwashere <evan@tsu.sh>
2021-08-28 03:19:57 +09:00
Hakizu
937952654d
feat(collections): add maxOf (#1144) 2021-08-25 02:32:40 +09:00
Yasser A.Idrissi
85ec40f481
fix(collections): export withoutAll function & add missing documentation (#1161) 2021-08-25 02:06:45 +09:00
Yasser A.Idrissi
6c407dea65
feat(collections): add withoutAll (#1100)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Leon Strauss <me@lionc.de>
Co-authored-by: Zhangyuan Nie <yuan@znie.org>
2021-08-24 16:07:32 +09:00
Andreu Botella
ff833450d3
chore(collections): test that sortBy() of NaN values is stable. (#1145) 2021-08-21 19:42:55 +09:00
Leon Strauss
475a982c28
feat(collection): find_last_index to return undefined on no index found (#1072) 2021-08-19 11:48:02 +09:00
Zhangyuan Nie
671e3c0a59
refactor(collections): permutations optimisation (#1132) 2021-08-17 13:19:42 +09:00
Zhangyuan Nie
273a3ac8ed
fix(collections): intersect does not handle duplicate values in head properly (#1131) 2021-08-14 19:44:25 +09:00
Philip Nagler-Frank
7882314484
docs(collections): fix typo in collections docs (#1127) 2021-08-13 11:09:40 +09:00
Zhangyuan Nie
de7edd51e0
feat(collections): compile time guarantee on pure functions (#1119) 2021-08-12 19:10:59 +09:00
Ryan Dahl
455077a905
fix: type check examples in README files (#1121)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-11 11:28:10 +02:00
Leon Strauss
252fd1a6ba
docs(collections): add contribution guide, some principles and extend README (#1110) 2021-08-10 17:50:36 +09:00
Leon Strauss
f579b5111f
chore(collections): clean up examples, types and file structure (#1116) 2021-08-10 17:46:14 +09:00
grian
adb7652067
feat(collections): add sumOf (#1108) 2021-08-09 17:55:26 +09:00
Leon Strauss
3b6d561690
feat(collections): add missing functions to collections/mod.ts (#1109) 2021-08-08 19:04:17 +09:00
Leon Strauss
fb97034adb
feat(collection): add mapNotNullish (#1103) 2021-08-07 18:12:56 +09:00
Leon Strauss
08e5f6ba0d
fix(collections): fix NaN handling in sortBy (#1104) 2021-08-06 11:21:23 +09:00
Simon Lecoq
08457eda61
feat(collections): add deepMerge (#1075)
Co-authored-by: Leon Strauss <me@lionc.de>
2021-08-05 21:14:45 +09:00
ayame113
c3cac4de7d
fix(collections): make the sortBy() of Date a stable sort (#1097) 2021-08-05 11:51:21 +09:00
Mathew Horner
9542f9e216
chore(collections): clean up sort_by code and add BigInt selector tests. (#1091) 2021-08-05 01:20:12 +09:00
Leon Strauss
94a84bc217
feat(collections): implement sortBy (#1069) 2021-08-04 00:32:47 +09:00
Leon Strauss
f8b46d0323
feat(collections): implement associateBy (#1071) 2021-07-31 15:35:48 +09:00
Yasser A.Idrissi
bffc4ce801 docs(collections): add findLastIndex documentation (#1066) 2021-07-30 11:50:05 -07:00
Yasser A.Idrissi
2ca77cfd0f feat(collections): add findLastIndex (#1062) 2021-07-30 11:50:05 -07:00
Yoshiya Hinosawa
294327640a chore: enable doc type checking (#1050) 2021-07-30 11:50:05 -07:00
Yasser A.Idrissi
62595488a6 docs(collection): add std/collections API documentation (#1043) 2021-07-30 11:50:05 -07:00
Leon Strauss
0fcd92ae42 Add std/collections (#993)
Co-authored-by: William Perron <hey@wperron.io>
2021-07-30 11:50:05 -07:00
Ryan Dahl
4880a8eccb temporarily remove collections in order to correct author attribution 2021-07-30 11:50:05 -07:00
Yasser A.Idrissi
ad4cb0090f
docs(collections): add findLastIndex documentation (#1066) 2021-07-27 23:36:19 +09:00
Yasser A.Idrissi
2ff5e3c55f
feat(collections): add findLastIndex (#1062) 2021-07-27 19:34:00 +09:00
Yoshiya Hinosawa
186354327c
chore: enable doc type checking (#1050) 2021-07-23 19:09:38 +09:00
Yasser A.Idrissi
68cf2a02bc
docs(collection): add std/collections API documentation (#1043) 2021-07-20 00:19:03 +09:00
Yoshiya Hinosawa
a23eb709eb
Add std/collections (#993) 2021-07-15 14:37:53 -07:00