Commit Graph

16 Commits

Author SHA1 Message Date
Youngjun Choi
3441d7d8d0
feat(sumBy): add sumBy (#198)
* feat: add sumBy function

* feat: add sumBy test

* feat: add sumBy bench

* feat: add sumBy documentation
2024-07-15 08:25:49 +09:00
raon0211
0e7e5c177c docs: Fix docs for range 2024-07-08 21:39:59 +09:00
jgjgill
494519b2ce
feat: Add inRange (#124) 2024-07-05 10:08:25 +09:00
jgjgill
ead6a8290e
feat(meanBy): add meanBy (#104)
* feat: add meanBy

* chore: fix typo

* Update benchmarks/meanBy.bench.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-01 19:59:19 +09:00
Sojin Park
ff59ab4c17 feat(random, randomInt): Accept singular argument 2024-06-30 12:24:38 +09:00
Sojin Park
715bc60b26 feat(mean): Add support for mean 2024-06-28 23:18:18 +09:00
Sojin Park
73cd00ecb7 chore: Move minBy & maxBy to array utilities 2024-06-28 21:52:19 +09:00
Sojin Park
2db11d8882 fix(range): Add docs for range, and match its behavior with python's range 2024-06-28 21:44:16 +09:00
배성준
92c9db00ba
fix(round): Throw an exception when precision is not an integer (#79)
* feat: add exception when precision is integer

* test: add testcase for precision exception

* docs: add examples for exception
2024-06-20 11:05:33 +09:00
Dongho Kim
cfc47e4b83
style(*): Apply formatting in markdown files (#76) 2024-06-19 17:29:50 +09:00
HyunWoo Lee (Nunu Lee)
860fb0c0e2
feat(minBy): Add minBy function that select element that have min value by given condition in array (#71)
* feat(minBy): Add minBy function that return minimum of arrary

* feat(minBy): Add minBy bench test & export it

* feat(minBy): Add documents of minBy

* feat(minBy): Add unit test of minBy

* Update src/math/minBy.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-17 18:40:13 +09:00
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
Sojin Park
67cb5eff30 docs(random, randomInt): Add docs for randomInt, and polish docs for random 2024-06-15 16:00:20 +09:00
ynnsuis / 장윤수
65a65ea24d
feat(random): Adds a function that generates a random floating-point number between the minimum and maximum. (#53)
* feat(random): Add generating a random floating-point number between min and max

* test(random) : Add tests for random function

* feat : Add random function to math module

* test : Add benchmark for random function

* refactor : Change the words min, max to minimum, maximum

* docs(random) : Add docs about random function

* docs(random): Add docs about random function

* docs(random): Fix documentation typos

* docs(random): Fix documentation typos

* docs(random): Fix spacing

* docs(random): Fix spacing

* docs(random): Update interface heading

* docs(random): Update interface heading

* fix(random): Validate input parameters and throw error for invalid ranges

* test(random) : Update tests for new input validation logic

* docs(random) : Update documentation for new input validation logic
2024-06-15 15:20:54 +09:00
Minsoo Kim
cf65b2c601
style(*): Setup prettier and apply formatting (#24)
* chore: add prettierrc

* chore: apply format with prettier config

* chore: eslint error fix
2024-06-04 17:19:26 +09:00
raon0211
7203b56367 1.0.0 2024-05-31 16:54:41 +09:00