Function convertToDNA

  • Convert the given RNA into DNA

    Parameters

    • rna: RNA

      The RNA to convert to DNA

    Returns DNA

    The equivalent DNA of the given RNA

    Example

     //Convert RNA to DNA
    convertToDNA(new RNA('AUG')); //returns DNA('ATG')