ljharb on master
[eslint config] [base] [patch] … [eslint config] [patch] extend … Merge pull request #1996 from r… (compare)
ljharb on master
[editorial] [react] fix typo [eslint config] [*] [deps] upda… (compare)
hi everyone!I have got some task which I can not really figure out. I would appreciate any help
I have got an array of arrays
[
[ 'STD', 'Standard', '5.5', '7.83', '9.9' ],
[ 'STD', 'Standard', '8.5', '7.83', '9.9' ],
[ 'STD', 'Standard', '9', '7.83', '9.9' ],
[ 'STD', 'Standard', '8.25', '7.83', '9.9' ]
]
I need to loop over them and return something like this -
[
['STD', 'Standard', '31.25', '7.83', '9.9' ]
]
where the 3 element is a sum of all 3 elements of previous arrays
bind.apply(f, ...a)
is the same as f.bind(...a)
, but without relying on f
having the right 1st bind` property go f