(str)
| 1244 | } |
| 1245 | |
| 1246 | function canBeJsonified(str) { |
| 1247 | if (typeof str !== 'string' && typeof str !== 'object') { |
| 1248 | return false; |
| 1249 | } |
| 1250 | try { |
| 1251 | const type = str.toString(); |
| 1252 | return type === '[object Object]' || type === '[object Array]'; |
| 1253 | } catch (err) { |
| 1254 | return false; |
| 1255 | } |
| 1256 | } |
| 1257 | |
| 1258 | CircularUtil.setRelativeParentUtil(Util); |
| 1259 |
no test coverage detected