Jim*_*ton -4 javascript arrays object
如果我有这样的javascript对象:
sampleObject[
{
suite: "Clubs",
weight : 10
},
{
suite: "Spades",
weight : 6
},
{
suite: "Hearts",
weight : 2
}
];
Run Code Online (Sandbox Code Playgroud)
我如何找到重量属性的总和?