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
Dongkyu Kim
fa22ab163e
perf(differenceBy): Optimize differenceBy
( #28 )
...
* fix(differenceBy): make differenceBy fast
* Update src/array/differenceBy.ts
---------
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-06-08 15:36:12 +09:00
Dongkyu Kim
4ec747ea81
perf(difference): Optimize difference
( #27 )
2024-06-08 15:33:54 +09:00
raon0211
795c83bd84
v1.1.0
2024-06-05 08:13:59 +09:00
raon0211
7460d055d2
test: Add test cases for debounce & throttle
2024-06-05 08:11:52 +09:00
Jungwoo LEE
79046ea5c1
feat(debounce, throttle): Support passing arguments to callback function in debounce & throttle function ( #26 )
...
* feat: add support for variable arguments in debounce.ts
* feat: add support for variable arguments in throttle.ts
* Update src/function/debounce.ts
* Apply suggestions from code review
* Update src/function/debounce.ts
* Update src/function/throttle.ts
* docs: update related docs
---------
Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-05 08:05:56 +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
21fa121853
v1.0.4
2024-06-04 10:07:24 +09:00
Minsoo Kim
523e55926f
style(*): Apply eslint rule ( #22 )
...
* chore: apply eslint rule for src/ files
* chore: add eslint script for checking lint
* chore: update typescript-eslint rule with error to warn
* Update src/predicate/isNil.ts
* Update src/predicate/isNotNil.ts
* Update package.json
---------
Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-04 10:00:12 +09:00
Jonghyeon Ko
9bde10a537
build: Support ESM type declarations & remove test files in dist ( #21 )
...
* fix(*): migrate rollup to tsup, support esm correctly, remove *.spec.* for dist
* chore: update
* postbuild
* Update .scripts/postbuild.sh
* Update package.json
Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>
---------
Co-authored-by: raon0211 <raon0211@toss.im>
2024-06-04 09:56:07 +09:00
raon0211
34d4356a82
v1.0.3
2024-06-03 22:32:27 +09:00
Jonghyeon Ko
848f2c66ff
fix(package.json): Provide correct types for moduleResolution: node, node10, and node16 ( #16 )
...
* fix: remove unnecessary exports overriding
* Revert "fix: remove unnecessary exports overriding"
This reverts commit f8534a14c1
.
* chore(package.json): add types field in publishConfig.exports
* build: Support moduleResolution: node10 and node16 (nodenext)
* build: Support moduleResolution: node10 and node16 (nodenext)
* build: Support moduleResolution: node10 and node16 (nodenext)
* fix delay
* Update .gitignore
Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>
* Update .scripts/postbuild.sh
Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>
---------
Co-authored-by: raon0211 <raon0211@toss.im>
2024-06-03 22:30:32 +09:00
SeongMin Kim
17096774e7
docs(uniqWith): Complete examples of uniqWith ( #15 )
...
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-06-01 20:52:49 +09:00