(obj)
| 278 | |
| 279 | function escapeRegExp (string) { |
| 280 | return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); |
| 281 | } |
| 282 | |
| 283 | function empty (obj) { |
| 284 | if (typeof obj === 'object') { |
| 285 | for (const key in obj) { |
| 286 | if (obj.hasOwnProperty(key)) { |
| 287 | return false; |
| 288 | } |
| 289 | } |
| 290 | } |
| 291 | return true; |
| 292 | } |
no outgoing calls
no test coverage detected