JSFiddle - React, Tailwind, and code Playground
JavaScript
var actor = [
[20,30,10,30,10],
[10,20,40,30,0],
[10,10,20,40,20]]
sum = function(o){
for(var s = 0, i = o.length; i; s += o[--i]);
return s;
};
var result = sum(actor[0]);
alert(result);