Is there the possibility of iterating over an interface properties in an elegant way and return a result based on a certain logic. I have an interface and I want to read the properties values to see if the values are empty or not and based on that I determine a final result.
Interface is :
errors: {
confirmPassword: "",
email: "",
firstname: "",
lastname: "",
password: ""
}
Now, I want to iterate through the properties and if anyone of them has some value, I return a true or false if all of them are empty.
Object.values(<object>)of an object which implements the interface? - adiga