Commit Graph

230 Commits

Author SHA1 Message Date
Sojin Park
7b824b7962 v1.6.0 2024-06-30 12:33:52 +09:00
Sojin Park
52b1b72b34 doc(zipObject): Add zipObject in the reference section 2024-06-30 12:25:25 +09:00
Sojin Park
ff59ab4c17 feat(random, randomInt): Accept singular argument 2024-06-30 12:24:38 +09:00
Dongho Kim
184ce1778d
feat(keyBy): Add keyBy (#93)
* feat(keyBy): Add keyBy

* docs(keyBy): Translate title into Korean

* Update docs/ko/reference/array/keyBy.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-30 12:17:00 +09:00
Lich
537745077f
feat(zipObject): Add zipObject function (#92)
* feat(zipObject): Add `zipObject` function that combines keys and values into an object

* feat(zipObject): Add `zipObject` function test code

* feat(zipObject): Add `zipObject` function bench

* feat(zipObject): Add `zipObject` function docs

* Update docs/ko/reference/array/zipObject.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-29 20:57:58 +09:00
Sojin Park
a8d7e03a79 docs(compact): Fix return type of compact 2024-06-28 23:23:59 +09:00
Sojin Park
715bc60b26 feat(mean): Add support for mean 2024-06-28 23:18:18 +09:00
Sojin Park
0c9afc27e6 fix(compact): Fix implementation of compact 2024-06-28 23:10:13 +09:00
Sojin Park
60ae59bcfe feat(compact): Add compact 2024-06-28 22:23:52 +09:00
Sojin Park
ed67b538dc docs(minBy, maxBy): Improve the docs for minBy & maxBy 2024-06-28 22:03:54 +09:00
Sojin Park
8ae92e43c4 v1.5.0 2024-06-28 21:53:30 +09:00
Sojin Park
ed145c509d test(range): Remove unncessary fallback value 2024-06-28 21:53:10 +09:00
Sojin Park
73cd00ecb7 chore: Move minBy & maxBy to array utilities 2024-06-28 21:52:19 +09:00
Sojin Park
0c83f361c2 fix(range): Remove incorrect export 2024-06-28 21:47:13 +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
Changwan
41a3008984
feat(range): Add range function (#77)
* wip range

* feat(range):  range function

* chore(range): update bench name

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-28 21:26:27 +09:00
Dongho Kim
cc6b4acbb5
fix(difference): Add missing readonly to parameter (#83) 2024-06-27 10:58:31 +09:00
Dongho Kim
1b3d9be724
fix(random): Correct JSDoc (#81) 2024-06-21 16:53:59 +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
Jun
3cc1a03519
chore(*): Add codspeed for benchmark visualization (#75)
* chore: add codspeed

* chore: fix the benchmark file to clearly distinguish between the comparison targets

* chore: fix typo
2024-06-18 10:40:07 +09:00
jgjgill
e3dbe50229
style(round): fix no-inferrable-types warn (#73)
* fix: lint no-inferrable-types warn

* chore: add line

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-17 22:01:21 +09:00
Jun
f22c1ceaef
chore: Add codeowners (#72) 2024-06-17 21:51:32 +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
jgjgill
3ecc06268c
test(omit, pick): Add test cases (#66)
* test: add pick tests

* chore: be consistent
2024-06-17 12:27:17 +09:00
jgjgill
2df38fe4e2
docs(isUndefined): Polish document styles and fix incorrect comments (#67)
* docs: add inline code markdown

* fix: change to undefined[] annotation

* Revert "fix: change to undefined[] annotation"

This reverts commit 3b81b8fb8a.

* chore: recommit
2024-06-17 12:26:32 +09:00
jgjgill
229bf9bd43
docs(take): Polish document style and remove duplicated tests (#68)
* docs: add inline code markdown

* test: remove duplicate tests
2024-06-17 12:25:38 +09:00
Jonghyeon Ko
2a809aad52
ci(broken-link-checker): Add default url for scheduled job (#70) 2024-06-17 12:24:58 +09:00
이호연
b66eab0ae1
fix(pickBy, omitBy): Enforce stricter argument types in shouldPick and shouldOmit (#60)
* chore: change type of key to `keyof T`

* docs: edit document

* docs: edit korean document
2024-06-15 19:44:45 +09:00
Sojin Park
8f1ffc7595 v1.4.0 2024-06-15 16:03:15 +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
Sojin Park
99a34e4e99 feat(randomInt): Implement randomInt function 2024-06-15 15:59:40 +09:00
Sojin Park
60e7974127 perf(uniqBy): Improve performance of uniqBy 2024-06-15 15:42:48 +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
hanna
8d80869fef
feat(delay): Support AbortSignal to delay for improved cancellation (#52)
* feat: Support AbortSignal to delay for improved cancellation

* docs: add AbortSignal in delay

* refactor: add once setting in addEventListener

* fix: abortError sentence

* feat: separate error file
2024-06-15 15:20:42 +09:00
Sojin Park
50c358589c v1.3.1 2024-06-15 11:56:54 +09:00
Changwoo Yoo
212f9709ee
fix(dropWhile): dropWhile returns the whole array when every element does not match the predicate (#49)
* fix: bug in dropWhile

* test: adds testcase for dropRightWhile

* Update src/array/dropWhile.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-15 11:51:54 +09:00
raon0211
74ceaf47ec v1.3.0 2024-06-14 10:34:16 +09:00
raon0211
ac4039e815 test: Add test cases for debounce when it is already aborted 2024-06-14 09:56:23 +09:00
Changwan
576b136a1b
perf(intersection): Optimize intersection (#47)
* refactor: optimize intersection

* Update src/array/intersection.ts

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-14 09:53:31 +09:00
hanna
a707c06f7f
feat(debounce): Support AbortSignal to cancel debounced functions for improved cancellation (#45)
* feat: Support AbortSignal to debounce for improved cancellation

* refactor: cancel timeoutId & add strict inequality

* fix: formatting in package.json

* refactor: using optional chaining

* fix: follow the fetch API's option

* docs: modify debounce ko, en docs
2024-06-14 08:04:05 +09:00
raon0211
fde86f7f4b docs: Add docs for uniqBy and uniqWith 2024-06-13 22:20:12 +09:00
raon0211
44e09c0b73 v1.2.2 2024-06-13 22:07:19 +09:00
raon0211
e595e5e017 fix: Support readonly arrays in array utilities 2024-06-13 22:04:24 +09:00
Gromit (전민재)
04ec2c2fd1
fix(partition): Add readonly type to the first argument of partition (#32)
* fix: Add the type readonly array to the partition

* fix: revert the partition documentation

---------

Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>
2024-06-13 20:30:08 +09:00
이호연
d7c37c9fb6
perf(uniq): Improve performance of uniq function (#40)
* fix<uniq>: make uniq function to use Set

* test(uniq): write additional test codes for uniq function

* Update src/array/uniq.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-13 20:29:21 +09:00
Changwan
0a02cdcaea
perf(intersectionBy): Optimize time complexity (#44) 2024-06-13 20:27:37 +09:00
Jonghyeon Ko
d22d241ea6
docs(README.md): add codecov badge to expose coverage ratio (#43) 2024-06-13 20:00:10 +09:00
ynnsuis / 장윤수
c7dd4a38c9
test(omit) : Add test cases for omit (#42) 2024-06-13 18:43:04 +09:00