Function isRNA

  • Type guard for checking if a nucleic acid is RNA

    Parameters

    Returns nucleicAcid is RNA

    True if the nucleic acid is RNA, false otherwise

    Example

     //pass an RNA object
    isRNA(new RNA()); //returns true

    //pass an DNA object
    isRNA(new DNA()); //returns false