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

Consider adding ResultSet to list of datatypes recognized by math.typeof #1016

pezcode opened this Issue Jan 14, 2018 · 2 comments


None yet
2 participants

pezcode commented Jan 14, 2018

Calling typeof with a ResultSet returned from eval gives me 'Object'.

I want to format different types of results nicely, and need to know if I'm dealing with a normal object or several results. I can check for result.isResultSet but it feels weird having to do that.

Is typeof only meant to be used inside of parsed expressions? Then it would make sense to exclude some mathjs types. But it would certainly be convenient to have.


This comment has been minimized.


josdejong commented Jan 15, 2018

Good point, we should add that!

@josdejong josdejong closed this in 82eec10 Apr 8, 2018


This comment has been minimized.


josdejong commented Apr 8, 2018

Should be fixed now in v4.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment