Molecule.getAtomId

Arguments

let molecule = new Molecule();

molecule.getAtomId(atom /* type: Atom */);

Returns

Type: String

The function returns a string identifier for the atom in the molecule.

Interactive Example

const { Molecule } = require('mcul'); let molecule = new Molecule(); let hydrogen = molecule.createAtom('H'); let id = molecule.getAtomId(hydrogen); console.log(id);