silentmatt / expr-eval

Mathematical expression evaluator in JavaScript
http://silentmatt.com/javascript-expression-evaluator/
MIT License
1.18k stars 239 forks source link

Adding a sum function to add variable-length arrays #230

Closed fawcilize closed 4 years ago

fawcilize commented 4 years ago

This function is custom for a local project, and I figured I would share it. Perhaps there is another way to sum an array of indeterminate length, but it was unclear for me.

silentmatt commented 4 years ago

This looks good to me. Thanks for adding it!