* Check if `key` is a message object for the locale * * `key` may be a `string` for functions at the root level, or `string[]` for * accessing hierarchical objects. If an exact match is not found and `fallback` * is true, the fallback locales are checked for the first match. * * @p
(key, lc, fallback)
| 247 | * @returns {boolean} |
| 248 | */ |
| 249 | hasObject(key, lc, fallback) { |
| 250 | if (!lc) lc = this.locale; |
| 251 | const fb = fallback ? this.getFallback(lc) : null; |
| 252 | return _has(this._data, lc, key, fb, 'object'); |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * Get the message or object corresponding to `key` |
no test coverage detected