(obj: unknown[])
| 23 | } |
| 24 | |
| 25 | function 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 | |
| 34 | export default function unset(object: any, path: string | (string | number)[]) { |
| 35 | if (isString(path) && Object.prototype.hasOwnProperty.call(object, path)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…