* Returns true if `obj` has at least one property. This is 20x faster than Object.keys(obj).length. * @see https://github.com/deepkit/deepkit-framework/blob/master/packages/core/src/core.ts
(object: Dictionary)
| 247 | * @see https://github.com/deepkit/deepkit-framework/blob/master/packages/core/src/core.ts |
| 248 | */ |
| 249 | static hasObjectKeys(object: Dictionary): boolean { |
| 250 | for (const key in object) { |
| 251 | if (Object.hasOwn(object, key)) { |
| 252 | return true; |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | return false; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Checks if arguments are deeply (but not strictly) equal. |
no outgoing calls
no test coverage detected