created_at
is the value I Want to compare with the beginDate
and the endDate
.
var newARRA = chain(this.props.transferts.transfertAccount)
.filter({ 'officeSender':
this.props.users.user.office,officeReceiver:this.state.selectedOffice,
'created_at':(this.state.beginDate,this.state.endDate)})
.groupBy("currency")
.map((v, k) => ({
currency: k,
amount: sumBy(v, 'fee')
}))
.value();