how to check empty object in typescript code example
Example 1: es6 check if the object is empty
Object.entries(objectToCheck).length === 0
Example 2: how to create empty object typescript
const _params = {} as any;
_params.name ='nazeh abel'
Object.entries(objectToCheck).length === 0
const _params = {} as any;
_params.name ='nazeh abel'