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
raon0211
e7a04cd1d8
v1.2.1
2024-06-13 15:34:31 +09:00
raon0211
921a5e0292
chore: Add MIT License
2024-06-13 14:01:05 +09:00
Jonghyeon Ko
ced287ff88
ci(codecov): Add codecov and upload test coverage ( #34 )
2024-06-13 13:56:41 +09:00
이호연
a7db6d88da
docs: Fix broken link from README.md and README-ko_kr.md in npmjs.com ( #39 )
2024-06-13 13:52:35 +09:00
Bang, Jaehun
dd5699631c
test(uniqWith): Add test cases for uniqWith ( #36 )
...
* fix(uniqWith): Add test cases for uniqWith
* Update src/array/uniqWith.spec.ts
* Update src/array/uniqWith.spec.ts
---------
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-13 10:40:52 +09:00
Jun
79ce446a51
fix(pick, omit): Restrict the type of arguments in object utils ( #35 )
...
* feat: change object utils type def
Co-authored-by: 김관식 <39869096+gwansikk@users.noreply.github.com>
* docs: modify object utils docs
---------
Co-authored-by: 김관식 <39869096+gwansikk@users.noreply.github.com>
2024-06-12 15:22:16 +09:00
Jonghyeon Ko
6ec3093801
style: Format some files ( #33 )
2024-06-12 11:35:49 +09:00
Juhyeok Kang
98e0837174
style(*): Fix missing and incorrect JSDoc types ( #30 )
...
* style: Add missing return types
* style: Fix missing and incorrect JSDoc types
* style: remove duplicate asterisks
2024-06-09 21:51:23 +09:00
Sojin Park
eb514b7af7
test: Fix test for noop
2024-06-08 16:07:18 +09:00
Sojin Park
2f5e13b557
v1.2.0
2024-06-08 15:52:26 +09:00
Sojin Park
678028dd3d
feat(noop): Add noop
function
2024-06-08 15:47:44 +09:00
Juhyeok Kang
958de0f94b
fix(shuffle): Ensure shuffle function does not modify original array ( #29 )
...
* fix: Ensure shuffle function does not modify original array
* Apply suggestions from code review
---------
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-08 15:38:04 +09:00