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

Function hasUndefined

src/utils/sort.js:12–14  ·  view source on GitHub ↗

* Checks if an array contains undefined values * @param {*} arg - The data to check * @returns {boolean} True if the array contains undefined values

(arg)

Source from the content-addressed store, hash-verified

10 * @returns {boolean} True if the array contains undefined values
11 */
12function hasUndefined (arg) {
13 return Array.isArray(arg) && arg.some(item => item === undefined);
14}
15
16/**
17 * Clones data efficiently based on whether it contains undefined values

Callers 1

smartCloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected