(arg)
| 6 | * @returns {boolean} True if the value equals the EMPTY constant, false otherwise |
| 7 | */ |
| 8 | export function isEmpty (arg) { |
| 9 | // Handle when called with no arguments - should return true |
| 10 | if (arguments.length === 0) { |
| 11 | return true; |
| 12 | } |
| 13 | |
| 14 | // Handle explicit undefined - should return false |
| 15 | if (arg === undefined) { |
| 16 | return false; |
| 17 | } |
| 18 | |
| 19 | return arg === EMPTY && typeof arg === "string"; |
| 20 | } |
no outgoing calls
no test coverage detected