Issues in documentation for parsing
dvd101x opened this issue · comments
David Contreras commented
Hi,
Documentation states that in a parser getAll()
retrieves a map, but it's an object.
mathjs/docs/expressions/parsing.md
Lines 169 to 170 in cee9deb
The one that retrieves a map is getAllAsMap
but it's not documented, fixing the grammatical error of "defined a variables" probably should be:
getAll()
Retrieve an object with all defined variables in the parser's scope.getAllAsMap()
Retrieve a map with all defined variables in the parser's scope.
Reference
mathjs/src/expression/Parser.js
Lines 99 to 113 in cee9deb
Jos de Jong commented
Good find, we should update and clarify the docs!
Jos de Jong commented
Fixed via #3158
Jos de Jong commented
The fix is now published in v12.4.0