True if the response is successful (200 or 204), false otherwise
Example
constresponse = awaitsomeBridgeMethod(); if (isSuccess(response)) { // response narrowed to the 200/204 variants of the response union if (response.status_code === 200) { console.log(response.result); } }
Type guard to check if a JSBridge response is successful (status codes 200 or 204).