In jquery, how to get all the possibles sums in an array ?
For example, if I had an array like this : [ 2 , 3 , 8 ]
I would have a result like this : [ 2 , 3 , 5 , 8 , 10 , 11 , 13 ]
...which corresponds to 2+3 , 2+8 , 3+8, 2+3+8, and the solos 2,3,8.
Thanks. Nicolas.