summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--genome-list.mjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/genome-list.mjs b/genome-list.mjs
index 8969a8c..c057d34 100644
--- a/genome-list.mjs
+++ b/genome-list.mjs
@@ -18,6 +18,14 @@ class GenomeList {
return undefined
}
}
+
+ get penultimate() {
+ if (this.genomes.length > 1) {
+ return this.genomes[this.genomes.length - 2]
+ } else {
+ return undefined
+ }
+ }
}
export default GenomeList