silentmatt / expr-eval

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

Ability to get the length of an array #227

Closed nuno89 closed 4 years ago

nuno89 commented 4 years ago

when using arrays, it would be very useful to be able to query the length of the array.

silentmatt commented 4 years ago

You can use the length(array) function for that. I checked the documentation and noticed it doesn't mention arrays, so I added that for clarification.