The sequence to get a complement of
The type of nucleic acid of the given sequence
The complement sequence, or undefined if the input sequence was undefined
//Get DNA complement
getComplementSequence('ATCG', NucleicAcidType.DNA); //returns 'TAGC'
//Get RNA complement
getComplementSequence('AUCG', NucleicAcidType.RNA); //returns 'UAGC'
Given a string sequence and a nucleic acid type, get the complement sequence Optimized using string replacement for better performance