rna-transcription/rna-transcription.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 4
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
mnd 0
bc 0
fnc 2
dl 0
loc 4
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
const Strands = new Map([["C", "G"], ["G", "C"], ["A", "U"], ["T", "A"]] );
2
    export const toRna = (input = "") =>  {
3
        return ([... input].map( char =>  Strands.get(char)).join(""));
4
    }