let molecule = new Molecule();
molecule.getBondedAtoms(atom /* type: Atom */);
atom
- The atom involved in bondingType: Array
[Atom
instance]
The function returns an array of bonded atoms.
const { Molecule } = require('mcul'); let molecule = new Molecule(); let c = molecule.createAtom('C'); molecule.hydrogenateCarbons(); console.log(molecule.getBondedAtoms(c));