Commit Graph

118 Commits

Author SHA1 Message Date
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
정해준
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
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
Touhid Rahman
4b00379320
feat(isEqual): add isEqual (#174)
* feat(isEqual): add isEqual

* chore(isEqual): rename variables

* fix(isEqual): add missing array equality

* Update isEqual.ts

* Update isEqual.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-14 18:01:57 +09:00
Sojin Park
f5b66fe650 docs(clone): Fix docs for clone 2024-07-14 17:49:22 +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
Siddhartha Sarkar
a8398d2912
docs: Fix casing for kebabCase text (#180) 2024-07-14 16:06:42 +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
6606d5ba84
docs: Fix typo in kebab case docs (#169) 2024-07-12 20:15:32 +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
raon0211
e4d906358a docs: Fix typo in unzip 2024-07-10 09:59:43 +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
ethan
6f60b786d5
docs(minBy): Fix example in minBy (#141)
change the returns : { a : 3 } to { a : 1 }
2024-07-09 20:37:00 +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
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
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
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
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
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
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
이호연
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
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
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
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
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
Sojin Park
678028dd3d feat(noop): Add noop function 2024-06-08 15:47:44 +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
7203b56367 1.0.0 2024-05-31 16:54:41 +09:00