* Returns a copy of the global state for a given field-based expression, * e.g. "foo.bar". * @param {string} expr * @return {*}
(expr)
| 527 | * @return {*} |
| 528 | */ |
| 529 | getState(expr) { |
| 530 | const value = expr ? getValueForExpr(this.state_, expr) : undefined; |
| 531 | if (isObject(value) || isArray(value)) { |
| 532 | return this.copyJsonObject_(/** @type {JsonObject} */ (value)); |
| 533 | } |
| 534 | return value; |
| 535 | } |
| 536 | |
| 537 | /** |
| 538 | * Returns a copy of the global state for an expression, after waiting for its |
no test coverage detected