For the complete documentation index, see llms.txt. This page is also available as Markdown.

average

⚠️ This is not a builtin function.

average() is an array method, not a standalone function. See Array aggregating methods.

Usage

[10, 10, 5, 3, 5].average()
// 6.6

[2, 5].average()
// 3.5

Call .average() on an array to find the mean average of all the values in that array.

Last updated