Commit Graph

284 Commits

Author SHA1 Message Date
Youngjun Choi
ef39661b63
feat: add test case of isNil (compat version) (#277)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-07-22 13:49:34 +09:00
Jun
e9f8e98774
docs: fix isTypedArray ko docs link (#276) 2024-07-22 13:45:33 +09:00
D-Sketon
93beef37a5
fix: jsdoc error (#272)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-22 09:42:57 +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
Sojin Park
bacbf81c4f docs: Update link for docs 2024-07-21 21:29:14 +09:00
Sojin Park
3d2715ea0a docs: Add docs for after 2024-07-21 21:27:01 +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
Sojin Park
4c285773d3 style: Fix ESLint errors 2024-07-21 11:04:27 +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
925ee3be50 docs: Add support for Deno for isArrayLike 2024-07-21 10:56:38 +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
KiKoS0
25cd782b5a
test(initial,last,takeRight,without,uniq): Add lodash compat tests (#269)
* test(initial): Add compat tests

* test(last): Add compat tests

* test(takeRight): Add compat tests

* fix(takeRight): Set default count to 1 & handle negative values

* chore(initial,last): Remove _.map from test names

* test(without): Add compat tests

* test(uniq): Add compat tests
2024-07-21 10:44:22 +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
D-Sketon
4e1b19fda2
docs(zh-CN): update translation (#268) 2024-07-21 10:34:43 +09:00
Sojin Park
cc06b2d7a3 test: Add missing test lines
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-20 12:49:11 +09:00
Dayong Lee
0efffb67b7
fix(clone): Clone the prototype when copying (#249)
* feat(clone): clone objects with a prototype

* add test cases

* change custom class test

* Update src/object/clone.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-20 12:42:01 +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
7bfc3e090f v1.13.1 2024-07-20 11:55:45 +09:00
Sojin Park
17be3379b7 build: Use compat builds in unpkg and jsdelivr 2024-07-20 11:54:19 +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
Sojin Park
528bc2b077 v1.13.0 2024-07-20 11:30:29 +09:00
Sojin Park
bd1fc6cb05 docs: Improve docs for module 2024-07-20 11:30:18 +09:00
Sojin Park
1e20a97134 docs: Add docs for isLength 2024-07-20 11:21:19 +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
Sojin Park
701e82300b build: Add build for browsers 2024-07-20 11:18:01 +09:00
Youngjun Choi
3f7136734b
test: Add test cases for take (#252)
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-20 11:04:28 +09:00
Youngjun Choi
0b71ce9b56
test(flattenObject): change using constant date in test case (#253)
* fix: change test case to use constant date in flattenObject test cases

* Update src/object/flattenObject.spec.ts

* Update src/object/flattenObject.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-20 11:00:35 +09:00
Seung Ju
d12453aa9f
docs(timeout): Update timeout.md (#251) 2024-07-20 09:54:36 +09:00
tanggd
1d9d0da667
docs: Update chunk.md (#248)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-19 19:29:36 +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
Dayong Lee
6f8f500150
chore(ci): add Prettier format check to CI workflow (#243) 2024-07-19 17:26:51 +09:00
raon0211
78c0c66a7d fix(tail): Fix type definition for tail 2024-07-19 16:19:21 +09:00
KiKoS0
0bb2a1ad51
test(head, tail): Add lodash tests (#239)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* chore: Add lodash tests for tail

* chore: Add lodash tests for head

* Update src/array/tail.ts

* Update src/compat/array/head.spec.ts

* Update src/compat/array/head.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-19 09:47:03 +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
b297ee7ef4 docs: Update broken sidebar links 2024-07-19 09:44:00 +09:00
raon0211
bc7ea93666 docs: Add sidebar links
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-07-19 01:09:40 +09:00
minsuKang
a8f5e675ff
docs(ko-docs-sidebar): ko-object-sidebar get,set link fix (#238) 2024-07-19 01:06:35 +09:00