D-Sketon
d83c435fdc
docs(benchmark): fix wrong link ( #393 )
2024-08-19 21:22:35 +09:00
Dayong Lee
4637a17b53
feat(orderBy): implement a feature of custom key functions in a compat/orderBy
( #385 )
...
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
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
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
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
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
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
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
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
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
Sojin Park
1022ea52a6
docs: Add benchmarks to some of our functions
2024-08-10 16:58:00 +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
bb94b88e70
test: Update isEqual benchmarks
2024-08-10 15:39:01 +09:00
Sojin Park
0054dc8119
feat(merge, toMerged): Add merge & toMerged
2024-08-10 15:38:41 +09:00
D-Sketon
4d46377d9b
feat(isSymbol): implement isSymbol ( #359 )
...
* feat: implement isSymbol
* fix: make pure
2024-08-10 10:16:18 +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
Dayong Lee
8600129813
style: Fix all lint errors ( #351 )
...
* Fix lint error
* Style format
* Add class, map, set
2024-08-07 18:50:42 +09:00
raon0211
ce412ff996
feat(isEqual): Implement isEqual
2024-08-07 18:50:11 +09:00
D-Sketon
ec1a55850c
feat(ary/unary): implement ary/unary ( #325 )
...
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
* feat(ary/unary): implement ary/unary
* fix
---------
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-08-04 23:23:00 +09:00
D-Sketon
f198dfd9d4
feat(bind): implement bind ( #337 )
...
* feat(bind): implement bind
* fix: redundant prototype copy
2024-08-04 21:33:43 +09:00
Dayong Lee
f715a730d3
feat(flattenDeep, flattenDepth): add compatibility with lodash ( #334 )
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-08-02 22:00:24 +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
Péter Kovács
8249ed25f8
feat(padStart): add padStart ( #323 )
...
* feat: add padStart function
* docs: add padStart doc
2024-07-31 21:55:00 +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
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
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
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
정해준
999a4daf87
feat(isNull): Add compatibility with lodash ( #264 )
...
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
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
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
오병진
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
e09517f05c
feat(concat): Add concat to es-toolkit/compat
2024-07-19 01:05:02 +09:00
raon0211
e1e6e38206
feat(max, min): Add support for max & min in es-toolkit/compat
2024-07-19 00:00:57 +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
Dayong Lee
58ea6baa5d
chore(clone): replace Foo class with object in clone benchmark ( #233 )
...
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-18 21:18:51 +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
fb820e26c8
docs: Update docs for zipObjectDeep
2024-07-18 20:43:58 +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
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 )
...
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