Experimental
Enforce a capability declaration against the active capability policy. Returns true when the capability is supported. When it is missing, throws HonuaCapabilityNotSupportedError under "strict" (the default) or returns false under "degraded".
true
HonuaCapabilityNotSupportedError
"strict"
false
"degraded"
Enforce a capability declaration against the active capability policy. Returns
truewhen the capability is supported. When it is missing, throwsHonuaCapabilityNotSupportedErrorunder"strict"(the default) or returnsfalseunder"degraded".