MCPcopy Create free account
hub / github.com/avoidwork/tenso / isEmpty

Function isEmpty

src/utils/isEmpty.js:8–20  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

6 * @returns {boolean} True if the value equals the EMPTY constant, false otherwise
7 */
8export 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}

Callers 2

authFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected