es-toolkit/benchmarks
HyunWoo Lee (Nunu Lee) 260bae963f
feat(maxBy): Add maxBy function that select element that have max value by given condition in array (#64)
* feat(maxBy): Add maxBy function

* feat(maxBy): Add benchamark test

* feat(maxBy): Add unit test of maxBy

* docs(maxBy): Add reference of maxBy function

* feat(maxBy): use for-each loop instead of index-increasing fashion

* fix(maxBy): Change code by code review

* fix(maxBy): Changed by code review, all tests are fine

* fix(maxBy): remove explicit undefined return

* fix(maxBy): Fix reference due to signature modification

* Update src/math/maxBy.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-17 18:39:42 +09:00
..
chunk.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
clamp.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
difference.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
differenceBy.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
differenceWith.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
drop.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
dropRight.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
dropRightWhile.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
dropWhile.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
groupBy.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
intersection.bench.ts perf(uniqBy): Improve performance of uniqBy 2024-06-15 15:42:48 +09:00
intersectionBy.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
intersectionWith.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
isNil.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
maxBy.bench.ts feat(maxBy): Add maxBy function that select element that have max value by given condition in array (#64) 2024-06-17 18:39:42 +09:00
omit.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
omitBy.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
partition.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
pick.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
random.bench.ts feat(random): Adds a function that generates a random floating-point number between the minimum and maximum. (#53) 2024-06-15 15:20:54 +09:00
round.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
sample.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
shuffle.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
sum.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
take.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
takeRight.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
takeRightWhile.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
takeWhile.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
union.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
unionBy.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
unionWith.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
uniq.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
uniqBy.bench.ts perf(uniqBy): Improve performance of uniqBy 2024-06-15 15:42:48 +09:00
uniqWith.bench.ts perf(uniqBy): Improve performance of uniqBy 2024-06-15 15:42:48 +09:00
xor.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
xorBy.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
xorWith.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
zip.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00
zipWith.bench.ts style(*): Setup prettier and apply formatting (#24) 2024-06-04 17:19:26 +09:00