query

The query() method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.

MDN Reference