input:
[{
email: 'sassa',
password: 'sas'
}]
output:
[{
email: 'sassa',
password: 'sas' ,
valid: true
}]
I have a response coming from my Node.js server, and I need to add the 'valid' field to the object for future use. What is the best way to achieve this? Using push doesn't seem to be working as expected.