1Preheat oven to 350 degrees F (175 degrees C). Grease 12 muffin cups or line with paper liners.
2Whisk flour, sugar, coconut, cinnamon, baking soda, nutmeg, and salt together in a large bowl; add carrots, oil, pineapple, eggs, and vanilla extract and mix until batter is evenly combined. Fold chocolate chips into batter; spoon into the prepared muffin cups.
3Bake in the preheated oven until a toothpick inserted in the center of a muffin comes out clean, 15 to 30 minutes. Cool muffins for 20 minutes before serving.