Jm-Paunlagui / Matrix-Lab-Client

Found no return statements in callbacks of array methods JS-0042
Anti-pattern
Major
a year agoa year old
Array.prototype.map() expects a return value from arrow function.
119  let positive = 0;
120  let negative = 0;
121
122  sentiments_list.map((sentiment) => {123    if (sentiment.sentiment >= 50) {
124      positive += 1;
125    } else {
Array.prototype.map() expects a return value from arrow function.
114  let positive = 0;
115  let negative = 0;
116
117  sentiments_list.map((sentiment) => {118    if (sentiment.sentiment >= 50) {
119      positive += 1;
120    } else {