makeSafe
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/errors/errorHandling / makeSafe
Function: makeSafe()
makeSafe(
fn:Function,options?: {logErrors?:boolean; }):Function
Defined in: utils/errors/errorHandling.js:405
Create a safe version of a function that returns null on error instead of throwing
Parametersβ
fnβ
Function
Function to make safe
options?β
Options
logErrors?β
boolean
Whether to log errors
Returnsβ
Function
Safe function