The state read-only property of the PermissionStatus interface returns the state of a requested permission.
state
MDN Reference