| Total Complexity | 2 |
| Complexity/F | 1 |
| Lines of Code | 4 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 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 | } |