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

Fixed isEmpty confusing objects (with special properties e.g. length and size) with keyed or indexed collections plus new functions under typed #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UnKnoWn-Consortium
Copy link
Contributor

Description

feat(typed): added isTypedArray to account for typed arrays
feat(typed): added isIndexedCollections for all sorts of arrays
feat(typed): added isSet and isMap for Set and Map respectively
feat(typed): added isKeyedCollections for both Set and Map
feat(typed): added isBigInt for BigInt
feat(typed): extended isInt to support BigInt
feat(typed): updated isEmpty to account for the newly supported types
fix(typed): fixed isEmpty confusing objects (with special properties e.g. length and size) with keyed or indexed collections
test(typed): added and updated tests for the new methods

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the version in package.json has been bumped (matching semver)
  • If code changes were made, the yarn build command has been run and to update the cdn directory
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

Resolves #366

feat(typed): added `isIndexedCollections` for all sorts of arrays
feat(typed): added `isSet` and `isMap` for `Set` and `Map` respectively
feat(typed): added `isKeyedCollections` for both `Set` and `Map`
feat(typed): added `isBigInt` for `BigInt`
feat(typed): extended `isInt` to support `BigInt`
feat(typed): updated `isEmpty` to account for the newly supported types
fix(typed): fixed `isEmpty` confusing objects (with special properties e.g. `length` and `size`) with keyed or indexed collections
test(typed): added and updated tests for the new methods
Copy link

vercel bot commented Mar 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 10, 2024 10:27pm

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.

isEmpty() returns true if one of the keys in object is "length"
1 participant