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

feat: add isPlainObject type guard #16

Merged
merged 2 commits into from
Jun 24, 2024
Merged

feat: add isPlainObject type guard #16

merged 2 commits into from
Jun 24, 2024

Conversation

aleclarson
Copy link
Member

@aleclarson aleclarson commented Jun 24, 2024

Description

Adds isPlainObject which returns true for both {} and Object.create(null), nothing else.

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

@aleclarson aleclarson merged commit ddae618 into main Jun 24, 2024
@aleclarson aleclarson added the new feature This PR adds a new function or extends an existing one label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This PR adds a new function or extends an existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant