diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-19 11:27:51 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-19 11:27:51 -0500 |
commit | 555e3faea8d3cc8ae5764876fe957039cdc0d431 (patch) | |
tree | 8d217720d55d4a5b7546d0ec6e259ee66f34ff42 | |
parent | fc3f9feeddd755d357fa76a28ce5d4a327e0c2e1 (diff) | |
download | molsim2-555e3faea8d3cc8ae5764876fe957039cdc0d431.tar.gz molsim2-555e3faea8d3cc8ae5764876fe957039cdc0d431.zip |
Add getter for nucleotides in Genome.
-rw-r--r-- | genome.mjs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -37,6 +37,10 @@ class Genome { return this._elt } + get nucleotides() { + return this.codons.flatMap(c => c.bases) + } + get onNucleotideSelectionChanged() { if (this._onNucleotideSelectionChanged !== undefined) { return this._onNucleotideSelectionChanged |