Returns the average value of a given path
average([1, 2, 3]); // 2
average([{a: 1}, {a: 2}, {a: 3}], "a"); // 2
average([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], "a.b"); // 2
Optional
Generated using TypeDoc
Returns the average value of a given path
Example
Example
Example