(obj: any)
| 111 | } |
| 112 | |
| 113 | function isEmpty(obj: any): boolean { |
| 114 | if (obj == null) { |
| 115 | return true; |
| 116 | } |
| 117 | if (isArray(obj)) { |
| 118 | return obj.length == 0; |
| 119 | } |
| 120 | if (isObject(obj)) { |
| 121 | for (const _ in obj) { |
| 122 | return false; |
| 123 | } |
| 124 | return true; |
| 125 | } |
| 126 | return false; |
| 127 | } |
| 128 | |
| 129 | function removeFromArr(arr: any[], idx: number): any[] { |
| 130 | console.log("removefromarray", arr, idx); |
no test coverage detected