forked from DebaucheryLibrarian/traxxx
Fixed averaging interpolating function.
This commit is contained in:
parent
985ab9d2dc
commit
7f86399033
|
@ -49,7 +49,7 @@ function getLongest(items) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAverage(items) {
|
function getAverage(items) {
|
||||||
return Math.round(items.reduce((acc, item) => acc + item, 0) / items.length);
|
return Math.round(items.reduce((acc, item) => acc + item, 0) / items.length) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toBaseActors(actorsOrNames, release) {
|
function toBaseActors(actorsOrNames, release) {
|
||||||
|
|
Loading…
Reference in New Issue