> For the complete documentation index, see [llms.txt](https://learn.squirrel365.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.squirrel365.io/squirrel-addon-documentation/squirrel-helper-library/angular/methods/getcopyofstate.md). Agents can also search and read this documentation through its [MCP server](https://learn.squirrel365.io/~gitbook/mcp).

# getCopyOfState

getCopyOfState(): any

Returns a clone of the current instance of state.&#x20;
