Commit Graph

420 Commits

Author SHA1 Message Date
D-Sketon
9862a7d76a
docs: Fix some errors in jsdoc (#400) 2024-08-20 21:54:23 +09:00
Ikko Eltociear Ashimine
14bac3aa65
docs: Add Japanese README (#394)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
I created Japanese translated README.
2024-08-19 21:23:25 +09:00
D-Sketon
d83c435fdc
docs(benchmark): fix wrong link (#393) 2024-08-19 21:22:35 +09:00
Dongho Kim
50814915ef
docs(isArray): Update docs for isArray (#390)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-18 22:51:39 +09:00
Dayong Lee
4637a17b53
feat(orderBy): implement a feature of custom key functions in a compat/orderBy (#385)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
* Implement custom key functions

* Add a benchmark

* Make clean getPath

* Simplify orderBy

* Rename variable

* Rename variable
2024-08-17 10:37:39 +09:00
Seongjee Kim
f08fbd1b6a
chore: remove unused import (#388) 2024-08-17 10:31:23 +09:00
Sojin Park
010ec0496e v1.16.0
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-08-15 23:18:39 +09:00
Sojin Park
aef394d8c4 fix(memoize): Fix type export for MemoizeCache 2024-08-15 23:14:36 +09:00
Sojin Park
9d68f5679d docs(padEnd): Add docs for padEnd 2024-08-15 23:13:17 +09:00
Sojin Park
b1ac921779 feat(memoize): Update behavior or memoize to get a custom getCacheKey and only accept unary or zero-argument function 2024-08-15 23:10:15 +09:00
novo
3cb5c804e1
feat(memoize): Add memoize (#208)
* feat: memoize

* test: memoize

* chore: add benchmark of memoize

* docs: add docs

* feat: add overloads to memoize

* feat: MemoizeOption

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-08-15 21:24:20 +09:00
Sojin Park
82010d8cbb docs: Update compatibility 2024-08-15 21:21:39 +09:00
Sojin Park
98af4a3a11 docs(rest): Improve docs for rest 2024-08-15 21:19:59 +09:00
D-Sketon
71a710b762
feat(rest): implement rest (#374)
* feat(rest): implement rest

* fix: compat
2024-08-15 21:01:13 +09:00
Péter Kovács
50b4866909
feat(padEnd): add padEnd (#380) 2024-08-15 20:58:58 +09:00
Dayong Lee
321a1bf635
refactor(sortBy, orderBy): use same compareValues function in internal and fix type (#382)
* Refact compareValues

* Fix type error

* Fix docs
2024-08-15 20:58:26 +09:00
Sojin Park
d4037c755c feat(sortBy): Refactor sortBy and improve docs
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-15 11:33:40 +09:00
Dayong Lee
21a0ceabc5
feat(sortBy): implement es-toolkit/sortBy (#381)
* Implement sortBy

* Add bench

* Extends template from object

* Fix example

* Add mixed iteratees

* Add docs and fix examples

* Fix jsdoc

* make prettier

* Update src/array/sortBy.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-08-15 11:15:35 +09:00
Sojin Park
8310cd9d5d docs(isString): Add docs for isString for zh_hans 2024-08-15 11:09:23 +09:00
uussong
b11fd69e17
feat(isString): Add isString function (#379)
* feat(isString): Add isString function

* test(isString): Add isString tests

* docs(isString): Add and improve docs for isString

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

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

* Update src/predicate/index.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-08-15 11:06:47 +09:00
Sojin Park
c639dd7209 docs: Update compatibility for findIndex
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-08-11 21:44:40 +09:00
Sojin Park
da091c49d8 docs: Add missing backticks in signature for has 2024-08-11 21:40:34 +09:00
Sojin Park
f99a6b26c3 docs: Add docs for errors 2024-08-11 21:38:32 +09:00
Sojin Park
418183b0aa docs: Add docs for indexOf 2024-08-11 21:20:11 +09:00
Sojin Park
2d96265951 docs: Add missing docs for find & findIndex 2024-08-11 21:10:18 +09:00
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
4bc1fa8704 docs: Update docs 2024-08-11 15:32:20 +09:00
Sojin Park
19e63dea78 docs(partial, partialRight): Add docs for partial, partialRight 2024-08-11 15:31:00 +09:00
Sojin Park
f71ff9e511 docs: Update docs for find 2024-08-11 15:24:13 +09:00
Dayong Lee
bcc3e924fd
chore: move some of files to performance folder and change path of importing correctly (#375)
* Remove duplicated zipObjectDeep bench

* set: Move and import from compat

* cloneDeep: Move to benchmarks folder

* startCase: Move to benchmarks folder
2024-08-11 15:21:14 +09:00
Sojin Park
ff49feba59 style: Fix ESLint errors
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-08-11 15:06:45 +09:00
Sojin Park
3c7e2ce5de chore: Update bundle size benchmarks 2024-08-11 15:05:14 +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
5cb0b78819 style: Fix ESLint errors 2024-08-11 12:59:59 +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
D-Sketon
5260d5b81b
feat(partial, partialRight): Implement partial/partialRight (#368)
* feat(partial/partialRight): implenent partial/partialRight

* Apply suggestions from code review

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-08-11 10:53:02 +09:00
Dayong Lee
2a3013597c
fix(toMerged): Add missing export (#373) 2024-08-11 10:45:05 +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
37fe24455a v1.15.1 2024-08-10 17:26:13 +09:00
Sojin Park
c1962f9f9e revert: Revert implicit conversion in orderBy
Revert "feat(orderBy): add handling one is a string and the other is a number case (#365)"

This reverts commit 4af0662066.
2024-08-10 17:24:13 +09:00
Sojin Park
982aabe87c docs: Fix dead links 2024-08-10 17:10:28 +09:00
Sojin Park
1022ea52a6 docs: Add benchmarks to some of our functions 2024-08-10 16:58:00 +09:00
Sojin Park
b7a55063ab v1.15.0 2024-08-10 16:35:27 +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