(obj)
| 203 | |
| 204 | // Used by `injected` |
| 205 | export function isEmpty(obj) { |
| 206 | for (const key in obj) { |
| 207 | if (hasOwnProperty(obj, key)) { |
| 208 | return false; |
| 209 | } |
| 210 | } |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | export function ensureArray(data) { |
| 215 | return Array.isArray(data) ? data : [data]; |
no outgoing calls
no test coverage detected