let molecule = new Molecule();
molecule.getBondCount(atom /* type: Atom */);
atom
- The atom involved in bondingType: Number
The function returns the number of bonds, counting double bonds as two, and triple bonds as three.
const { Molecule } = require('mcul'); let molecule = new Molecule(); let c = molecule.createAtom('C'); molecule.hydrogenateCarbons(); console.log(molecule.getBondCount(c));