Added missing getAll() parser function

This commit is contained in:
John Stephenson
2018-10-30 16:59:21 +00:00
parent 3d82362c03
commit 7f4faaf58f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2876,6 +2876,7 @@ declare namespace math {
interface Parser {
eval(expr: string): any;
get(variable: string): any;
getAll(): { [key: string]: any; };
set: (variable: string, value: any) => void;
clear: () => void;
}
+1
View File
@@ -179,6 +179,7 @@ Expressions examples
const x = parser.get('x');
const f = parser.get('f');
const y = parser.getAll();
const g = f(3, 3);
parser.set('h', 500);