(fn, defaultValue)
| 438 | } |
| 439 | |
| 440 | export const tryOrDefault = function (fn, defaultValue) { |
| 441 | try { |
| 442 | return fn() |
| 443 | } catch (_) { |
| 444 | return defaultValue |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | function normalizeKeyReplacer(match, prefix, key, suffix, offset, string) { |
| 449 | if (typeof key !== 'string') { |
no test coverage detected