Sha256: e8226f183e6db5bcd7124605d1100cca2240f4566c50cea4a165b0ccd3247629

Contents?: true

Size: 190 Bytes

Versions: 28

Compression:

Stored size: 190 Bytes

Contents

const DNA_TO_RNA = {
  G: "C",
  C: "G",
  T: "A",
  A: "U"
};

export default class Transcriptor {
  toRna(dna) {
    return dna.replace(/./g, nucleotide => DNA_TO_RNA[nucleotide]);
  }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trackler-2.0.3.2 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.3.1 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.3.0 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.2.0 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.1.2 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.1.1 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.1.0 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.10 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.9 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.8 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.7 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.6 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.5 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.4 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.3 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.2 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.1 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-2.0.0.0 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-1.0.4.1 tracks/ecmascript/exercises/rna-transcription/example.js
trackler-1.0.4.0 tracks/ecmascript/exercises/rna-transcription/example.js