reading property of object which is empty javascript throws which error code example Example: es6 check if the object is empty Object.entries(objectToCheck).length === 0