data = this.appendAnalyticsData(data)
data = this.appendSubmissionData(data)
data = this.appendAdditionalInputs(data)
data = this.pruneObject(data)
data = this.pruneObject(
this.appendAdditionalInputs(
this.appendSubmissionData(
this.appendAnalyticsData(data)
)
)
)
var funcs = [
this.appendAnalyticsData,
this.appendSubmissionData,
this.appendAdditionalInputs,
this.pruneObject
]
funcs.forEach(function (func) {
data = func(data)
})
var funcs = [
this.appendAnalyticsData,
this.appendSubmissionData,
this.appendAdditionalInputs,
this.pruneObject
]
data = funcs.reduce(function (memo, func) {
return func(memo)
}, data)
data = _.flow(
this.appendAnalyticsData,
this.appendSubmissionData,
this.appendAdditionalInputs,
this.pruneObject
)(data)
Written by Kiko Beats
Kiko Beats
Web is the Platform. Programmer, Computer Science & Software Engineer.