summaryrefslogtreecommitdiffstats
path: root/codon.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'codon.mjs')
-rw-r--r--codon.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/codon.mjs b/codon.mjs
index 612e4ac..6163883 100644
--- a/codon.mjs
+++ b/codon.mjs
@@ -25,6 +25,10 @@ class Codon {
return this._elt
}
+ get value() {
+ return this.bases.map(b => b.value).join('')
+ }
+
lock() {
this.bases.forEach(n => n.lock())
this.aminoAcid.lock()