UNPKG
cpt-waffle-lotide
Version:
latest (1.0.0)
1.0.0
LoTide in Typescript
github.com/vasiliy-klimkin/lotide-ts
vasiliy-klimkin/lotide-ts
cpt-waffle-lotide
/
src
/
average.js
8 lines
(7 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
const
average
= (
list
) => {
const
sum = list.
reduce
(
(
prev, curr
) =>
prev + curr);
return
sum / list.
length
; };
exports
.
default
= average;