• function
 

Try to return the result of JSON.stringify(x). If that fails, return defaultValue

Scheduler.tryStringify(x, defaultValue)

Try to return the result of JSON.stringify(x). If that fails, return defaultValue

Parameters

  1. x {*}

  2. defaultValue {*}

Returns

Help us improve StealJS by taking our community survey