I have a Report
model which has a list of Event
models. Each of Event
model instances has a validate()
method which returns true
or false
.
When I execute this.report.events.map(e => e.validate())
in a component’s view model, shouldn’t the result be an array of true
or false
values?
Am I missing anything on how map()
behaves or is my Report model definition incorrect or something else?
Complete example here: https://jsbin.com/duyile/edit?html,js,console,output