Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isEmpty function #71

Closed
Tracked by #59
ppeeou opened this issue Dec 14, 2021 · 0 comments · Fixed by #91
Closed
Tracked by #59

Add isEmpty function #71

ppeeou opened this issue Dec 14, 2021 · 0 comments · Fixed by #91
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ppeeou
Copy link
Member

ppeeou commented Dec 14, 2021

Suggestion

⭐ Suggestion

Returns true if the given value is empty value, false otherwise.

💻 Use Cases

isEmpty(1); // false
isEmpty(0); // false
isEmpty(false); // false
isEmpty(true); // false
isEmpty(new Date()); // false
isEmpty(undefined); // true
isEmpty(null); // true

isEmpty({}); // true
isEmpty({a:1}); // false

isEmpty([]); // true
isEmpty([1]); // false

isEmpty(""); // true
isEmpty("a"); // false

isEmpty(function(){}); // false
isEmpty(Symbol("")); // false
@ppeeou ppeeou added enhancement New feature or request good first issue Good for newcomers v0.4 labels Dec 14, 2021
@shine1594 shine1594 mentioned this issue Dec 14, 2021
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant