7
I get the following object:
obj = {
fernando: {
nome: 'Fernando',
idade: 21
},
tiago: {
nome: 'tiago',
idade: NaN
},
total: 2
}
As you can see, I receive an object where each attribute can be another object, and it can also be an attribute of the whole type.
How do I check each "person". age is Number
????
EDIT: I need to check "N" values (people), not just a specific one...
Sergio, have you been using Arrow functions without transposing the code? This is already reasonably supported?
– bfavaretto
@bfavaretto by chance do not know if the IE11 supports (I imagine not), the others I think already support. As I work in an environment that is transposed by Babel I have made it a habit to use ES6+.
– Sergio