Commit Graph

271 Commits

Author SHA1 Message Date
Dayong Lee
f55662d994
feat(indexOf): implement indexOf in es-toolkit/compat (#378)
* Implement indexOf

* Add bench

* Add compat docs
2024-08-11 21:09:39 +09:00
Sojin Park
c9587f3816 feat(findIndex): Implement findIndex 2024-08-11 21:03:13 +09:00
Sojin Park
8482793737 docs: Remove broken link 2024-08-11 15:34:08 +09:00
Sojin Park
19e63dea78 docs(partial, partialRight): Add docs for partial, partialRight 2024-08-11 15:31:00 +09:00
Sojin Park
fb05fbe355 feat(find): Implement find 2024-08-11 15:05:04 +09:00
Sojin Park
d7fa6ceb50 docs: Update docs for compatibility 2024-08-11 14:09:55 +09:00
Sojin Park
dd97756ffb feat(matchesProperty): Implement matchesProperty 2024-08-11 14:09:13 +09:00
Sojin Park
01cf3a6c9a feat(has): Implement has 2024-08-11 12:56:15 +09:00
Sojin Park
be4162dc19 style: Apply prettier 2024-08-11 10:54:13 +09:00
Sojin Park
0ae3e51977 docs: Clarify docs for es-toolkit/compat
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-10 17:38:07 +09:00
Sojin Park
1022ea52a6 docs: Add benchmarks to some of our functions 2024-08-10 16:58:00 +09:00
Sojin Park
8912165ee8 docs(mergeWith): Improve docs for mergeWith 2024-08-10 16:32:40 +09:00
Dayong Lee
bf33cfbca5
feat(orderBy, isSymbol): add compatibility with lodash (#357)
* Add internal functions

* add orderBy with compat

* Add docs

* Fix typo

* Split the code for readability

* Change convert to path logic and variable name for readability

* Add test cases and js doc in isKey and isSymbol

* Add testcase and change logic of isKey

* change bench category name

* split converToPropertyName for testing

* Add case for coverage

* fix type

* Change using getTage to instanceof

* move to predicate

* Add doc

* Add bench and description in isSymbol

* Fix type and test case

* Simplify function names

* Feat: handle the deep path like keys
2024-08-10 16:30:32 +09:00
Sojin Park
cc3a467443 feat(mergeWith): Add implementation for mergeWith 2024-08-10 16:24:51 +09:00
Sojin Park
0054dc8119 feat(merge, toMerged): Add merge & toMerged 2024-08-10 15:38:41 +09:00
Sojin Park
bff10652b4 docs: Add examples in cloneDeep
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-10 10:33:05 +09:00
Sojin Park
5d34b16683 docs(pascalCase, startCase): Add docs for pascalCase & startCase 2024-08-10 10:26:23 +09:00
Juhyeok Kang
bfddc0f549
docs: Add Sandpack in docs (#363) 2024-08-10 10:15:48 +09:00
raon0211
7ca9ffcd72 docs: Revert adding Sandpack components
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-09 11:09:25 +09:00
raon0211
f4b6eb3ef4 docs: Add Sandpack components again
Revert "revert: Add Sandpack components, since it currently breaks the build"

This reverts commit 9109e89078.
2024-08-09 11:01:46 +09:00
2sky
138e055801
docs(fix-ko-usage-link): fix ko docs hero actions usage link (#362)
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-08-09 11:00:30 +09:00
raon0211
0eab4b9c9c feat(mapValues): Ensure compatibility with mapValues 2024-08-09 10:40:35 +09:00
raon0211
17d8afa2a3 feat(padStart): Move padStart to our compat library 2024-08-09 10:28:11 +09:00
raon0211
4bb457ad01 feat(isArguments, isArrayLike, isObjectLike): Move some predicates to compat library 2024-08-09 10:16:37 +09:00
raon0211
a2491e5cff fix(isObjectLike): Make the docs more intuitive 2024-08-09 10:08:21 +09:00
raon0211
f5b43f138f feat(size): Move size to compat 2024-08-09 10:00:41 +09:00
raon0211
9109e89078 revert: Revert Sandpack components, since it currently breaks the build
Revert "docs: Implement Sandpack component for interactive examples in documentation (#338)"

This reverts commit db79ff3355.
2024-08-09 09:52:09 +09:00
raon0211
f6be4d7ad6 feat(bind): Move bind to compat 2024-08-09 09:32:42 +09:00
raon0211
9c0f7b8210 test(isBoolean): Add test cases from lodash 2024-08-08 18:50:35 +09:00
raon0211
5ef7f3e245 docs(isBoolean): Add isBoolean 2024-08-08 18:47:50 +09:00
guesung
71dcaa4d23
feat(isBoolean): Add isBoolean function (#354)
* feat(isBoolean): Add `isBoolean` function

* docs(isBoolean): fix the typo

* fix: fix the lint
2024-08-08 18:45:52 +09:00
raon0211
b2427e1f4b fix(ary, unary): Fix guard in ary & unary, add Korean docs
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-07 19:02:23 +09:00
raon0211
ce412ff996 feat(isEqual): Implement isEqual 2024-08-07 18:50:11 +09:00
Juhyeok Kang
db79ff3355
docs: Implement Sandpack component for interactive examples in documentation (#338)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
* feat(docs): add sandpack component

* docs: add demo in chunk api doc
2024-08-06 11:36:43 +09:00
Gromit (전민재)
b0011fa038
feat(isSubset): Add isSubset function (#343) 2024-08-04 21:29:45 +09:00
Dayong Lee
f715a730d3
feat(flattenDeep, flattenDepth): add compatibility with lodash (#334)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-08-02 22:00:24 +09:00
원동휘
6356555f46
feat: add readonly type for toFilled (#327)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* feat: add readonly type for toFilled

* Apply suggestions from code review

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-31 22:01:30 +09:00
오병진
fcc166a8fa
feat(size, compat): implement size function (#275)
* feat(size, compat): implement size function

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* fix: typo

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* bench(size): add benchamrk code

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* enhance(size): refactor size implementation

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* remove: unused code

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* fix: type check

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* fix: typo

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

---------

Signed-off-by: sunrabbit123 <qudwls185@naver.com>
2024-07-31 22:00:02 +09:00
Dayong Lee
2d1c406398
feat(flatten): add compatibility with lodash (#330)
* feat(flatten): add compatibility

* Add bench

* Add doc

* fix jsdoc
2024-07-31 21:54:21 +09:00
Gromit (전민재)
25217a571e
docs(isPrimitive): fix isPrimitive function documentations (#331)
* fix: isPrimitive function

* docs: fix isPrimitive docs

* docs: fix isPrimitive jsdoc
2024-07-31 21:50:58 +09:00
raon0211
876931405a feat(cloneDeep): Support full feature parity with lodash 2024-07-31 21:50:17 +09:00
D-Sketon
c0b3af2fe1
docs: improve document (#324) 2024-07-30 00:02:49 +09:00
sadobass
28ddb499e6
docs - maxBy : "max" -> "min", 3 -> 1 (#317)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-07-27 12:29:39 +09:00
Dayong Lee
a02b4158eb
feat(isObjectLike, isArguments): Add isObjectLike and isArguments with compatibility test (#279)
* Add isObjectLike

* Add isArguments

* remove duplicate function noop

* Remove un duplicated function

* add bench

* update compatibility

* Add docs

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-25 16:36:57 +09:00
raon0211
834a71589a docs: Update docs for compatibility
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-25 12:17:18 +09:00
raon0211
0e0329ac91 feat(property): Add property 2024-07-25 12:04:32 +09:00
seungrodotlee
13c7c7f611
feat(mapKeys,mapValues): add mapKeys and mapValues (#291)
* feat(mapKeys): add mapKeys

* feat(map*): not clone object

* chore. fix names on bench

* feat. pass cloned object to iteratee

* Fix interface

* fix. fix test codes

* fix. fix type error on test

* Add docs

* test: Check test

* bench

* rewrite

* mapKeys

* test: Do not mutate the original function

---------

Co-authored-by: raon0211 <raon0211@toss.im>
2024-07-25 11:43:15 +09:00
정해준
0c6f7c95f1
feat(before): Add before (#315)
* feat(before): Add before function

* feat(before): Add before test code

* feat(before): Add before docs

* feat(before): Add before benchmarks

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-25 11:39:18 +09:00
raon0211
c350b23ee2 feat(isMatch, matches): Add isMatch & matches in compat 2024-07-25 11:36:14 +09:00
Jaekyung Jung
ad3df49e4b
docs: add missing period on some korean docs (#283) 2024-07-25 00:50:00 +09:00
tanggd
b134df19da
docs: Update docs for get (#278)
* docs: Update chunk.md

* Squashed commit of the following:

commit 14c8b1108a3aa6d45955c7dcd94a74598c9b4737
Author: tanggd <tanggd11@foxmail.com>
Date:   Mon Jul 22 13:17:17 2024 +0800

    docs: Update docs for get

commit 9b7b7ac41f7484753723b32f4d624da4c8bfe4e6
Author: tanggd <tanggd11@qq.com>
Date:   Fri Jul 19 17:00:59 2024 +0800

    docs: Update chunk.md

---------

Co-authored-by: tanggd <tanggd11@foxmail.com>
2024-07-23 23:19:29 +09:00
Sojin Park
c6d2f602cc feat(isPrimitive): Add isPrimitive
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-21 23:08:02 +09:00
Sojin Park
2df30f70db feat(isTypedArray): Add isTypedArray 2024-07-21 22:56:28 +09:00
novo
b08e5c9bca
feat(cloneDeep): Add cloneDeep (#199)
* feat: cloneDeep

* test: cloneDeep

* chore: add benchmark of cloneDeep

* docs: add docs of cloneDeep

* chore: fix name

* fix: constructor type

* feat: add index

* chore: add doc

* feat: Add native classes handling and benchmark structuredClone

* feat: Resolved type and aligned behavior with structuredClone

* fix: object init

* fix: File for legacy nodejs

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-21 22:33:56 +09:00
정해준
231b7ef83c
feat(after): Add after (#258)
* feat(after): Add after function

* feat(after): Add after test code

* feat(after): Add after benchmark

* feat(after): Add after docs

* fix(after): should create a function that unc only after being called
 calls

* docs(after): change the after function docs

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-21 21:24:00 +09:00
Sojin Park
202ea61e0f docs: Update docs for installation & usage
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-21 18:01:25 +09:00
D-Sketon
d117481dc4
fix(min, max): Do not return undefined in non-empty arrays (#270)
* fix: improve min&max type

* Apply suggestions from code review

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-21 17:49:43 +09:00
정해준
999a4daf87
feat(isNull): Add compatibility with lodash (#264)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* feat(isNull): Add isNull benchmark

* feat(isNull): Add compat's isNull test code

* docs(isNull): Update isNull status from 'review' to 'complete'

* Update src/compat/predicate/isNull.spec.ts

* Update src/compat/predicate/isNull.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-21 11:06:54 +09:00
정해준
d0812b81ab
feat(isUndefined): Add compatibility with lodash (#266)
* feat(isUndefined): Add isUndefined benchmark

* feat(isUndefined): Add compat's isUndefined test code

* docs(isUndefined): Update isUndefined status from 'review' to 'complete'

* fix(isUndefined): fix typo

* Update src/compat/predicate/isUndefined.spec.ts

* Update src/compat/predicate/isUndefined.spec.ts

* Update src/compat/predicate/isUndefined.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-21 11:04:50 +09:00
Dayong Lee
2f76fd2461
test(invert): add compatibility testcase (#261) 2024-07-21 10:58:58 +09:00
Dayong Lee
e0469bf394
feat(fill): Add compatibility with lodash (#259)
* feat(fill): Add compatibility with lodash

* Change docs and export fill
2024-07-21 10:58:40 +09:00
Sojin Park
d4081c0674 docs: Update docs for isFunction, negate, isArrayLike 2024-07-21 10:55:36 +09:00
Dayong Lee
bd7cb34cb7
feat(isArrayLike,isFunction): Add isArrayLike and isFunction with compatibility (#265)
* add isArrayLike and isFunction

* Add bench

* Add create arguments function

* Add isArrayLike function

* Add compatibility

* Change sub title to korean in isLength docs

* Add docs

* Fix typo error

* add toArgs testcase and remove a unusable expression

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-21 10:51:09 +09:00
Sojin Park
1043a48f22 docs: Update our compatibility docs 2024-07-21 10:45:41 +09:00
Sojin Park
35fbc4caa7 docs: Ensure compatibility of isArray with lodash 2024-07-21 10:41:25 +09:00
Sojin Park
e49c82b0fe chore: Move isArray to our compatibility library 2024-07-21 10:38:14 +09:00
Dongho Kim
fb51b98732
feat(isArray): Add isArray (#267)
* feat(isArray): Add `isArray`

* refactor(isArray): Simplify the return type of `isArray`
2024-07-21 10:35:59 +09:00
Sojin Park
cbd4d3d002 docs: Update docs for compatibility
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-20 12:00:40 +09:00
Sojin Park
f4370374f6 docs: Add installation docs in modern browsers 2024-07-20 11:50:25 +09:00
Sojin Park
b19773d01d docs: Add installation docs in browsers 2024-07-20 11:41:29 +09:00
오병진
caedf69aed
feat(isLength): Add isLength (#245)
* feat(predicate, compat, isLength): impl isLength

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* docs: change compatibility mark

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* test(isLength, compat): add test case link

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* docs(predicate, isLength): add route path on vitepress

Signed-off-by: sunrabbit123 <qudwls185@naver.com>

* Update docs/ko/reference/predicate/isLength.md

---------

Signed-off-by: sunrabbit123 <qudwls185@naver.com>
Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-20 11:18:20 +09:00
raon0211
3e60443a40 feat(flattenObject): Add flattenObject 2024-07-19 19:09:29 +09:00
raon0211
376499351f feat(isPlainObject): Add isPlainObject 2024-07-19 19:08:13 +09:00
raon0211
eee44287e7 docs: Note that we do not handle cases where internal object prototypes were modified 2024-07-19 09:44:30 +09:00
raon0211
e09517f05c feat(concat): Add concat to es-toolkit/compat 2024-07-19 01:05:02 +09:00
raon0211
32a79fd4e8 feat(difference): Add compatibility for difference 2024-07-19 00:51:07 +09:00
raon0211
f00ea62ee6 docs: Elaborate what the implementation status means 2024-07-19 00:23:49 +09:00
raon0211
0dbef13f24 docs: Update wording in our compatibility docs 2024-07-19 00:19:04 +09:00
raon0211
3642214a26 docs: Update wording in our compatibility docs 2024-07-19 00:12:40 +09:00
raon0211
93d3e6a192 docs: Update compatibility docs for max & min 2024-07-19 00:07:26 +09:00
raon0211
e1e6e38206 feat(max, min): Add support for max & min in es-toolkit/compat 2024-07-19 00:00:57 +09:00
raon0211
6739c840ed test: Add test cases to ensure that drop & dropRight is compatible with es-toolkit 2024-07-18 23:07:30 +09:00
raon0211
96f3ce72cf chore: Move get to compat & document 2024-07-18 22:59:11 +09:00
raon0211
8143e8461c docs: Update compatibility docs 2024-07-18 21:51:57 +09:00
raon0211
566a3fcab1 chore: Ensure compatibility for compact 2024-07-18 21:47:13 +09:00
Seung Ju
b31b3a6964
feat(withTimeout): add withTimeout function (#210)
* feat(timeout): add timeout function

* feat(timeout): timeout to withTimeout

* Update docs/ko/reference/promise/withTimeout.md

* Update docs/ko/reference/promise/withTimeout.md

* feat(timeout): timeout, withTimeout

* Update docs/ko/reference/promise/timeout.md

* Update docs/ko/reference/promise/timeout.md

* Update withTimeout.ts

* Update timeout.ts

* Apply suggestions from code review

* Update withTimeout.md

* Update withTimeout.spec.ts

* Update src/promise/withTimeout.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-18 21:37:33 +09:00
raon0211
2db0b49579 chore(startsWith, endsWith): Update docs and import tests from lodash 2024-07-18 21:36:32 +09:00
Bert Verhelst
b9b409db32
feat(startsWith): add startsWith and endsWith string functions (#224)
* feat(startsWith): add startsWith and endsWith string functions

similar to
* https://lodash.com/docs/4.17.15#startsWith
* https://lodash.com/docs/4.17.15#endsWith

* fix(startsWith): use native startsWith inside the startsWith function

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-18 21:21:10 +09:00
PiQuark6046
a186e5d4bd
feat(get): Add get (#232)
* feat: get

* chore: add benchmark of get

* test: get

* feat: get

* docs: get

* Update src/object/get.ts

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-18 21:17:15 +09:00
raon0211
9b10967e42 docs: Fix broken links 2024-07-18 21:16:14 +09:00
novo
404d4a51a8
docs(uniqBy): fix docs for uniqBy (#231)
* docs: fix uniqBy doc example

* test: add test case

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-18 21:12:44 +09:00
원동휘
8e5a4f3212
feat(fill): Improve fill to support negative indices (#222)
* feat: add imporve fill function

* feat: add test for fill

* feat: improved testing for toFilled

* feat: add docs for fill

* fix: toFilled Typo fix

* fix: type interface and docs

* fix: fill type docs

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-18 20:59:13 +09:00
raon0211
fb820e26c8 docs: Update docs for zipObjectDeep 2024-07-18 20:43:58 +09:00
raon0211
0d9e34243a docs: Update compatibility table 2024-07-18 20:37:19 +09:00
raon0211
9c4b61acba docs: Update docs for compat 2024-07-18 20:34:12 +09:00
raon0211
38a939f31f docs: Update docs for compat 2024-07-18 20:31:35 +09:00
raon0211
ff4b97ab60 chore: Add zipObjectDeep in compat 2024-07-18 20:28:07 +09:00
raon0211
bb063fbcf6 docs(set): Update documentation for set 2024-07-18 20:10:56 +09:00
Jiujiang Liu
5dcde9f159
feat(zipObjectDeep): Add zipObjectDeep (#150)
Co-authored-by: liujiujiang <liujiujiang@agilebot.com.cn>
2024-07-18 20:05:25 +09:00
raon0211
2168a67045 chore: Move set to our compat library
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-18 10:07:01 +09:00
novo
b9432e1cfd
feat(set): add set function (#223)
* feat: set

* test: set

* chore: add doc and benchmark

* chore: fix benchmark name
2024-07-18 10:00:59 +09:00
Deokgyung
7ee48c0e71
feat(startCase): add startCase (#203)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* feat: add startCase

* docs: add docs of startCase

* fix: startcase lint error
2024-07-17 22:42:58 +09:00
raon0211
533df29e2e docs: Add docs for bundle size 2024-07-17 11:49:48 +09:00
raon0211
51e1970495 docs: Add docs for flatMap
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-15 22:50:07 +09:00
Gromit (전민재)
fec678cf34
feat(flatMap): add flatMap function (#209)
* feat(flatMap): add flatMap function

* docs: fix docs

* Update src/array/flatMap.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-15 22:43:15 +09:00
CreeJee
d909cdc8e9
docs(negate): wrong document result (#207) 2024-07-15 19:11:43 +09:00
minsuKang
deb3882890
docs(last-ko): delete error category in last-ko docs (#202)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-15 11:07:29 +09:00
정해준
3f407712e4
docs(isEqual): Add isEqual docs (#200)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-15 09:43:42 +09:00
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
Sojin Park
e3cd91f59d docs: Elaborate docs for es-toolkit/compat 2024-07-15 00:02:40 +09:00
Sojin Park
acb74650a6 feat: Introduce es-toolkit/compat, and add chunk in compat 2024-07-14 23:55:52 +09:00
Sojin Park
9b6bf6dfb4 docs(negate): Fix docs for negate 2024-07-14 18:14:23 +09:00
CreeJee
bda3bef5c3
feat(negate): Add negate (#177)
* feat(negate): add negate base lodash implement

* Update docs/ko/reference/function/negate.md

* Update negate.md

* Update negate.md

* Update negate.spec.ts

* Update src/function/negate.ts

* Update src/function/index.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-14 18:10:01 +09:00
Jun
128147b108
feat(clone): Add clone (#155)
* feat: add clone(shallow copy) implementaion and test codes

* chore: add benchamark of clone

* docs: add docs of clone

* chore: bench number

* Update docs/ko/reference/object/clone.md

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-14 17:46:25 +09:00
Sojin Park
8b1ee79ac0 docs: Remove readonly type from our docs 2024-07-14 17:31:45 +09:00
Sojin Park
21d6530e16 feat(camelCase): Add camelCase 2024-07-14 17:23:57 +09:00
Sojin Park
0fdc90d39b chore: Apply code review of initial 2024-07-14 15:55:22 +09:00
minsuKang
15a1a3c014
feat(initial): add initial (#188)
* add initial function

* add initial test case

* add initial bench mark

* add initial docs
2024-07-14 15:54:17 +09:00
Bert Verhelst
b1cb93355a
feat(lowerCase): Add lowerCase function (#166)
* feat(lowerCase): Add lowerCase function

* Update docs/ko/reference/string/lowerCase.md

* Update docs/ko/reference/string/lowerCase.md

* Update docs/reference/string/lowerCase.md

Co-authored-by: Evan Moon <bboydart91@gmail.com>

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Evan Moon <bboydart91@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-12 10:17:34 +09:00
Bert Verhelst
541b89dc0d
feat(kebabCase): Add kebabCase function (#162)
* feat(kebabCase): Add kebabCase function

Very similar to snakeCase

* Update docs/ko/reference/string/kebabCase.md

* Update snakeCase.md

* Create kebabCase.md

* Update snakeCase.md

* Update docs/.vitepress/ko.mts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-12 10:14:30 +09:00
Atajan
16d326c4b2
feat(capitalize): add capitalize (#161)
* feat(capitalize): add capitalize

* fix(capitalize): return type

* Update docs/ko/reference/string/capitalize.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-12 10:07:40 +09:00
Gromit (전민재)
ae69076d3c
feat(flattenDeep): add flattenDeep function (#160) 2024-07-12 09:56:21 +09:00
원동휘
ea66835ffb
feat(toFilled): Add toFilled (#154)
* feat: add toFilled

* feat: add test for toFilled

* feat: add bench for toFilled

* docs: add docs for toFilled

* chore: Modified benchmark wording

* Update benchmarks/toFilled.bench.ts

Co-authored-by: jgjgill <79239852+jgjgill@users.noreply.github.com>

* fix: toFilled benchmark

* Apply suggestions from code review

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

* Update docs/reference/array/toFilled.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: jgjgill <79239852+jgjgill@users.noreply.github.com>
2024-07-11 10:55:29 +09:00
정해준
d48900fa55
feat(snakeCase): add snakeCase (#152)
* feat(snakeCase): Add caseSplitPattern RegExp const

* feat(snakeCase): Add caseSplitPattern test code

* feat(snakeCase): Add snakeCase function

* feat(snakeCase): Add snakeCase test code

* feat(snakeCase): Add snakeCase docs

* feat(snakeCase): Add snakeCase benchmarks

* chore: Add string export

* fix(snakeCase): constants public api

* Update docs/ko/reference/string/snakeCase.md

* Update docs/ko/reference/string/snakeCase.md

* Update docs/reference/string/snakeCase.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-11 09:14:09 +09:00
minsuKang
883553b39b
feat(last): Add last (#149)
* add last function

* add last test case

* add last bench mark

* add last docs

* fix ko last docs comment

* add last en.mts, ko.mts

* Update src/array/last.ts

* Update src/array/last.spec.ts

* Update docs/reference/array/last.md

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

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

* Update docs/reference/array/last.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-11 09:05:13 +09:00
Lich
27b6c8f521
feat(tail): add tail function (#143)
* feat(tail): add tail function

* feat(tail): add tail test code

* feat(tail): add tail benchmark

* feat(tail): add tail docs

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

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

* Update docs/reference/array/tail.md

* Update docs/reference/array/tail.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-10 09:52:12 +09:00
Gromit (전민재)
7c824629ee
feat(flatten): add flatten (#147)
* feat(flatten): add faltten (#137)

* fix: fix lint

* fix: fix test code description

* test(flatten): add test case

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

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

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

* Update docs/reference/array/flatten.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-10 09:49:26 +09:00
raon0211
0e7e5c177c docs: Fix docs for range 2024-07-08 21:39:59 +09:00
seunghee
208cb09c8b
feat(unzip): add unzip (#130)
* feat: unzip function

* test: unzip test

* chore: unzip bench

* docs: unzip

* docs: unzip

* docs: unzip

* Update src/array/unzip.ts

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

* Update src/array/unzip.ts

* Update docs/reference/array/unzip.md

* Update unzip.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-08 21:35:45 +09:00
Lich
618f8ac060
feat(head): add head (#131) 2024-07-08 15:30:40 +09:00
hanna
1eada4d85d
feat(orderBy): Add orderBy (#123)
* feat(orderBy): add orderBy function

* feat(orderBy): add orderBy test code

* feat(orderBy): add orderBy bench

* feat(orderBy): add orderBy function docs

* feat(orderBy): add orderBy vitepress docs

* fix: test function & add the extend orders feature

* Update src/array/orderBy.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-05 10:11:56 +09:00
원동휘
1918eec3d9
feat(invert): add invert (#125)
* feat: Add invert

* feat: Add test for invert

* feat: Add bench for invert

* docs: Add docs for invert

* docs: fix .vitepress for invert

* chore: Change incorrectly specified path

* chore: Refactor benchmark tests

* feat: refactor type invert

* Update src/object/invert.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-05 10:08:39 +09:00
jgjgill
494519b2ce
feat: Add inRange (#124) 2024-07-05 10:08:25 +09:00
정해준
ba1e976c5a
feat(forEachRight): add forEachRight (#119)
* feat(forEachRight): Add forEachRight function

* feat(forEachRight): Add forEachRight test code

* feat(forEachRight): Add forEachRight function bench

* feat(forEachRight): Add forEachRight function docs

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

* Update docs/reference/array/forEachRight.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-03 10:43:50 +09:00
Dongkyu Kim
834d50c389
feat(unzipWith): add unzipWith (#113)
* feat(array): add unzipWith

* docs(array): add unzipWith reference

* perf: refactoring unzipWith bench

* docs(array): add vitepress

* Apply suggestions from code review

* Update unzipWith.ts

* Update src/array/unzipWith.ts

* Update benchmarks/unzipWith.bench.ts

* Update benchmarks/unzipWith.bench.ts

* Update src/array/unzipWith.spec.ts

* Update src/array/unzipWith.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-03 10:40:33 +09:00
HyunWoo Lee (Nunu Lee)
373d63b980
feat(countBy): Add countBy function (#117)
* [feature/#88] Add countBy.ts

* [feature/#88] Add benchmark test of countBy

* [feature/#88] Add test code

* [feature/#88] Add countBy references

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

* Apply suggestions from code review

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-03 10:09:12 +09:00
DevGon
a82eb933ae
feat(without): Add without function (#115)
* feat(without): Add `without` function

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

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

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

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

* Apply suggestions from code review

* Update src/array/without.ts

* Update src/array/without.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-03 10:08:47 +09:00
hansolbangul
d870b1e7fe
feat(fill): Add fill function (#109)
* feat(fill): Add fill function

* feat(fill): Add test/brench code

* feat(fill): Update docs

* feat(fill): Refactor based on code review

* refactor(fill): array to arr

* fix(fill): update `fill` function signature to support mixed types
2024-07-03 09:30:09 +09:00
jgjgill
e7472e06db
test(once): Fix docs and test, add bench (#103)
* docs: translate doc

* test: add toBeUndefined()

* chore: add bench

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-02 10:32:06 +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
Minsoo Kim
e62c06193a
docs: update installation section (#102) 2024-07-01 07:10:04 +09:00
jgjgill
02f14b3697
feat(sampleSize): Add sampleSize (#101) 2024-06-30 19:36:26 +09:00
Dongho Kim
6c9c0d1c26
docs(groupBy, keyBy): Update type of key to PropertyKey (#100) 2024-06-30 15:49:13 +09:00
Sojin Park
de1591c2e5 docs: Fix docs for installations 2024-06-30 14:55:32 +09:00
Sojin Park
ad683b82c7 docs: Remove duplicated heading in installation 2024-06-30 13:57:33 +09:00
Sojin Park
2615cab8f5 docs: Update Korean docs for JSR installation in deno 2024-06-30 13:50:43 +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