Skip to content

feat: add isEmpty utility function#106

Open
jin-sir wants to merge 2 commits into
DTStack:masterfrom
jin-sir:feat_isEmpty
Open

feat: add isEmpty utility function#106
jin-sir wants to merge 2 commits into
DTStack:masterfrom
jin-sir:feat_isEmpty

Conversation

@jin-sir
Copy link
Copy Markdown
Collaborator

@jin-sir jin-sir commented May 21, 2026

描述

之前迭代时将 isEmpty 废弃了,在使用时发现,该方法使用的地方较多,使用 lodash 中的方法没有一个方法完全符合以前的历史逻辑,需要多个方法组合实现,较为麻烦。所以将该方法重新支持。

@jin-sir jin-sir requested a review from liuxy0551 May 21, 2026 10:20
Comment thread src/isEmpty/index.ts Outdated
Comment thread src/isEmpty/index.ts
Comment thread src/isEmpty/index.ts Outdated
Comment thread src/isEmpty/index.ts
Comment thread src/isEmpty/index.ts
@jin-sir jin-sir force-pushed the feat_isEmpty branch 2 times, most recently from e43fde8 to b820fef Compare May 21, 2026 12:35
Comment thread src/isEmpty/index.ts
return false;
};

export default isEmpty;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs 应该也要新增 isEmpty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants