MCPcopy
hub / github.com/react-hook-form/react-hook-form / isEmptyArray

Function isEmptyArray

src/utils/unset.ts:25–32  ·  view source on GitHub ↗
(obj: unknown[])

Source from the content-addressed store, hash-verified

23}
24
25function isEmptyArray(obj: unknown[]) {
26 for (const key in obj) {
27 if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {
28 return false;
29 }
30 }
31 return true;
32}
33
34export default function unset(object: any, path: string | (string | number)[]) {
35 if (isString(path) && Object.prototype.hasOwnProperty.call(object, path)) {

Callers 1

unsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…