let molecule = new Molecule();
molecule.chainCarbons(carbonCount /* type: Number */, bondOptions);
carbonCount - The number of carbons to chainbondOptions - Bond options for the carbon-carbon bondsType: Array[Atom instance]
The function returns an array of bonded carbons.
const { Molecule } = require('mcul'); let molecule = new Molecule(); let carbons = molecule.chainCarbons('C', 5); console.log(carbons);