Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Consider adding ResultSet to list of datatypes recognized by math.typeof #1016
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.