Skip to content

isEmpty improvements for number types #5313

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

Closed
wants to merge 1 commit into from

Conversation

vkiranmaniya
Copy link

For numbers, isEmpty should follow the language rules. isEmpty should return false for truthy numbers like 1,5, etc and true for falsy numbers like 0.

 isEmpty(0) // true
 isEmpty(4) // false

For numbers, `isEmpty` should follow the language rules. `isEmpty` should return false for truthy numbers like 1,5, etc and true for falsy numbers like 0.
@vaynevayne
Copy link

I agree that basic types should use the features of the language instead of foolishly returning true. Lodash is dead. Is there any new library recommendation?

@jdalton jdalton closed this Sep 16, 2023
@jdalton jdalton added the issue bankruptcy Closing the issue/PR to start fresh label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue bankruptcy Closing the issue/PR to start fresh
Development

Successfully merging this pull request may close these issues.

3 participants