I have a computed property that looks like this:
display() {
return this.labs.map(function(x, i) {
return [x, this.plotDt[i]];
});
}
This property receives data as props:
props: ["plotDt", "labs"],
Both plotDt
and labs
are arrays of the same length (For example, if I input two arrays: [a, b, c]
and [1, 2, 3]
, I expect to get a mapped array like this: [[a, 1], [b, 2], [c, 3]]
)
Despite this expectation, it seems like something is not quite right. When I check in VueTools, I receive an error message stating: "error during evaluation"
. I'm unsure what could be causing this issue.