Identify Current Workspace in Javascript

In the 5.6.0 update, we saw some updates to workspaces. It would be really useful to be able to query the name of the currently applied workspace, or even access a currently applied workspace object.

I’ve hit this as a limiting factor on a few occasions now, and it would be great to be able to be able to have such a query.