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
commit 7beeff47e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

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;
}

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);