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

possible way to determine if something is a record #4

Closed
jedwards1211 opened this issue Jul 10, 2016 · 2 comments
Closed

possible way to determine if something is a record #4

jedwards1211 opened this issue Jul 10, 2016 · 2 comments

Comments

@jedwards1211
Copy link

Not at all elegant, but this is true for Records (not sure if it's true for anything else though):

Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(thing)))['@@__IMMUTABLE_KEYED__@@']
@jedwards1211
Copy link
Author

Oh nevermind, looks like you check _defaultValues. The README sounded like you don't format records

@mattzeunert
Copy link
Owner

Thanks for the suggestions. I agree the readme didn't make that clear, I've updated it now.

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

No branches or pull requests

2 participants