Created
July 20, 2016 22:52
-
-
Save regonn/460f6fb826a4bb94f3fc4f2468fa027a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function pairElement(str) { | |
| const DNA_PAIR = { | |
| 'A': 'T', | |
| 'T': 'A', | |
| 'C': 'G', | |
| 'G': 'C' | |
| }; | |
| return str.split('').map(function(char) { | |
| return [char, DNA_PAIR[char]]; | |
| }); | |
| } | |
| pairElement("GCG"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment