let molecule = new Molecule();
molecule.getAtomId(atom /* type: Atom */);
atom
Type: String
The function returns a string identifier for the atom in the molecule.
const { Molecule } = require('mcul'); let molecule = new Molecule(); let hydrogen = molecule.createAtom('H'); let id = molecule.getAtomId(hydrogen); console.log(id);