Skip to content

Still pass if constructor key is a primitive#27

Open
mostekcm wants to merge 1 commit intojonschlinkert:masterfrom
mostekcm:mostekcm-check-for-primitive-constructor
Open

Still pass if constructor key is a primitive#27
mostekcm wants to merge 1 commit intojonschlinkert:masterfrom
mostekcm:mostekcm-check-for-primitive-constructor

Conversation

@mostekcm
Copy link
Copy Markdown

I added a test. If the constructor is a primitive, then this should still be considered a plain object because it isn't being created with a constructor.

@mostekcm
Copy link
Copy Markdown
Author

This fixes (or implements depending on whether you consider this a feature or a bug :) ): #26

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.

1 participant