Before the support articles here were "streamlined" at the Altar of Minimalist Design, there was a very good, in-depth Apple battery care article that recommended using the computer on battery once a week or so. It basically stated that a lithium battery, like a muscle, benefits from a bit of exercise. Although Apple power management system are better today, the underlying battery technology is much the same.
My Macbook Pro runs on battery once a week when I work a volunteer job with limited access to wall outlets. Its original battery cannot run as long as when it was new, but still delivers acceptable runtime for my needs. The battery turns 11 years old last June.
One caution: "generic" battery maintenance site recommend "calibration." Apple stopped the recommendation to "calibrate" about 2009. Calibration involves running the battery to zero, not a good thing if done repeatedly.