Type guard for checking if a nucleic acid is RNA
The nucleic acid to check
True if the nucleic acid is RNA, false otherwise
//pass an RNA object isRNA(new RNA()); //returns true //pass an DNA object isRNA(new DNA()); //returns false Copy
//pass an RNA object isRNA(new RNA()); //returns true //pass an DNA object isRNA(new DNA()); //returns false
Type guard for checking if a nucleic acid is RNA