Merge pull request #30141 from jfstephe/master

Added missing getAll() parser function
This commit is contained in:
Daniel Rosenwasser
2018-11-04 22:39:22 -08:00
committed by GitHub
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);